summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorSong Yoong Siang <yoong.siang.song@intel.com>2024-03-03 16:32:24 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2024-03-04 15:01:59 +0100
commit01031fd473059bf69bb6edc6d51d4bd58ad92e50 (patch)
tree05d146fce3abfe4cbf39785303e10518b4fd12e5 /net/ipv4
parent8f79870ec8a9409983ad5981e1b7d599cbf047bd (diff)
downloadlinux-01031fd473059bf69bb6edc6d51d4bd58ad92e50.tar.gz
linux-01031fd473059bf69bb6edc6d51d4bd58ad92e50.tar.bz2
linux-01031fd473059bf69bb6edc6d51d4bd58ad92e50.zip
selftests/bpf: xdp_hw_metadata reduce sleep interval
In current ping-pong design, xdp_hw_metadata will wait until the packet transmission completely done, then only start to receive the next packet. The current sleep interval is 10ms, which is unnecessary large. Typically, a NIC does not need such a long time to transmit a packet. Furthermore, during this 10ms sleep time, the app is unable to receive incoming packets. Therefore, this commit reduce sleep interval to 10us, so that xdp_hw_metadata is able to support periodic packets with shorter interval. 10us * 500 = 5ms should be enough for packet transmission and status retrieval. Signed-off-by: Song Yoong Siang <yoong.siang.song@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/bpf/20240303083225.1184165-2-yoong.siang.song@intel.com
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions