aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2020-09-10 10:31:04 +0200
committerAlexei Starovoitov <[email protected]>2020-09-14 18:38:11 -0700
commit3131cf66d3033aa40db5b5d72a2673315b61c862 (patch)
treeae29ca1e0953972061cd7548512b23489ae0d4a1 /tools/perf/scripts/python
parentd72714c1da138e6755d3bd14662dc5b7f17fae7f (diff)
samples/bpf: Fix one packet sending in xdpsock
Fix the sending of a single packet (or small burst) in xdpsock when executing in copy mode. Currently, the l2fwd application in xdpsock only transmits the packets after a batch of them has been received, which might be confusing if you only send one packet and expect that it is returned pronto. Fix this by calling sendto() more often and add a comment in the code that states that this can be optimized if needed. Reported-by: Tirthendu Sarkar <[email protected]> Signed-off-by: Magnus Karlsson <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions