Skip to content

Enhancements to xdpsock application

Jay Jayatheerthan bpf netdev 1 version Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6samples/bpf: xdpsock: Add duration option to specify how long to runsamples/bpf/xdpsock_user.c+35 -20 replies
2/6samples/bpf: xdpsock: Use common code to handle signal and main exitsamples/bpf/xdpsock_user.c+7 -20 replies
3/6samples/bpf: xdpsock: Add option to specify batch sizesamples/bpf/xdpsock_user.c+29 -230 replies
4/6samples/bpf: xdpsock: Add option to specify number of packets to sendsamples/bpf/xdpsock_user.c+59 -140 replies
5/6samples/bpf: xdpsock: Add option to specify tx packet sizesamples/bpf/xdpsock_user.c+265 -110 replies
6/6samples/bpf: xdpsock: Add option to specify transmit fill patternsamples/bpf/xdpsock_user.c+9 -40 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBjörn Töpel
SeriesT-b A-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/6] Enhancements to xdpsock application

This series of patches enhances xdpsock application with command line parameters to set transmit packet size and fill pattern among other options. The application has also been enhanced to use Linux Ethernet/IP/UDP header structs and calculate IP and UDP checksums.

I have measured the performance of the xdpsock application before and after this patch set and have not been able to detect any difference.

Packet Size:
------------
There is a new option '-s' or '--tx-pkt-size' to specify the transmit packet size. It ranges from 47 to 4096 bytes. Default packet size is 64 bytes which is same as before.

Fill Pattern:
-------------
The transmit UDP payload fill pattern is specified using '-P' or '--tx-pkt-pattern'option. It is an unsigned 32 bit field and defaulted to 0x12345678.

Packet Count:
-------------
The number of packets to send is specified using '-C' or '--tx-pkt-count' option. If it is not specified, the application sends packets forever.

Batch Size:
-----------
The batch size for transmit, receive and l2fwd features of the application is specified using '-b' or '--batch-size' options. Default value when this option is not provided is 64 (same as before).

Duration:
---------
The application supports '-d' or '--duration' option to specify number of seconds to run. This is used in tx, rx and l2fwd features. If this option is not provided, the application runs for ever.

This patchset has been applied against commit 99cacdc6f661f50f ("Merge branch 'replace-cg_bpf-prog'")

Jay Jayatheerthan (6):
samples/bpf: xdpsock: Add duration option to specify how long to run samples/bpf: xdpsock: Use common code to handle signal and main exit samples/bpf: xdpsock: Add option to specify batch size samples/bpf: xdpsock: Add option to specify number of packets to send samples/bpf: xdpsock: Add option to specify tx packet size samples/bpf: xdpsock: Add option to specify transmit fill pattern

 samples/bpf/xdpsock_user.c | 426 +++++++++++++++++++++++++++++++++----
 1 file changed, 387 insertions(+), 39 deletions(-)
Signature · 1 line
2.17.1