YiFei Zhu wrote: > Run tools/testing/selftest/bpf/xsk_hw.c as part of drv-net. > > A matrix of TX/RX, copy/zerocopy, and driver mode / skb mode, are > tested. Additionally, it tests some edge cases such as: > - Zerocopy TX with and without attaching an XDP prog. > - Zerocopy RX where binding happens before fillq gets filled. > > TX and RX are tested separately, and the remote side always runs > the basic AF_PACKET handler rather than AF_XDP, in order to > isolate potential causes of test failures. > > Currently the next-hop MAC address of each side must be manually > specified via LOCAL_NEXTHOP_MAC & REMOTE_NEXTHOP_MAC. It's probably > doable to detect these addresses automatically, but it's future work, > and probably library code since it is also applicable to csum.py. > > Signed-off-by: YiFei Zhu <zhuyifei@xxxxxxxxxx> Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>