-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selftests/xsk: xsk selftests #281
Commits on Nov 2, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d7760de - Browse repository at this point
Copy the full SHA d7760deView commit details -
selftests/xsk: xsk selftests framework
This patch adds AF_XDP selftests framework under selftests/xsk. Prerequisites setup by script TEST_PREREQUISITES.sh: Set up veth interfaces as per the topology shown in README: * setup two veth interfaces and one namespace ** veth<xxxx> in root namespace ** veth<yyyy> in af_xdp<xxxx> namespace ** namespace af_xdp<xxxx> * create a spec file veth.spec that includes this run-time configuration that is read by test scripts - filenames prefixed with TEST_XSK *** xxxx and yyyy are randomly generated 4 digit numbers used to avoid conflict with any existing interface Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
Configuration menu - View commit details
-
Copy full SHA for e86c800 - Browse repository at this point
Copy the full SHA e86c800View commit details -
selftests/xsk: xsk selftests - SKB POLL, NOPOLL
Adds following tests: 1. AF_XDP SKB mode Generic mode XDP is driver independent, used when the driver does not have support for XDP. Works on any netdevice using sockets and generic XDP path. XDP hook from netif_receive_skb(). a. nopoll - soft-irq processing b. poll - using poll() syscall Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
Configuration menu - View commit details
-
Copy full SHA for 86865e3 - Browse repository at this point
Copy the full SHA 86865e3View commit details -
selftests/xsk: xsk selftests - DRV POLL, NOPOLL
Adds following tests: 2. AF_XDP DRV/Native mode Works on any netdevice with XDP_REDIRECT support, driver dependent. Processes packets before SKB allocation. Provides better performance than SKB. Driver hook available just after DMA of buffer descriptor. a. nopoll b. poll * Only copy mode is supported because veth does not currently support zero-copy mode Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
Configuration menu - View commit details
-
Copy full SHA for df6dc28 - Browse repository at this point
Copy the full SHA df6dc28View commit details -
selftests/xsk: xsk selftests - Socket Teardown - SKB, DRV
Adds following tests: 1. AF_XDP SKB mode c. Socket Teardown Create a Tx and a Rx socket, Tx from one socket, Rx on another. Destroy both sockets, then repeat multiple times. Only nopoll mode is used 2. AF_XDP DRV/Native mode c. Socket Teardown * Only copy mode is supported because veth does not currently support zero-copy mode Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
Configuration menu - View commit details
-
Copy full SHA for 3785441 - Browse repository at this point
Copy the full SHA 3785441View commit details -
selftests/xsk: xsk selftests - Bi-directional Sockets - SKB, DRV
Adds following tests: 1. AF_XDP SKB mode d. Bi-directional Sockets Configure sockets as bi-directional tx/rx sockets, sets up fill and completion rings on each socket, tx/rx in both directions. Only nopoll mode is used 2. AF_XDP DRV/Native mode d. Bi-directional Sockets * Only copy mode is supported because veth does not currently support zero-copy mode Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
Configuration menu - View commit details
-
Copy full SHA for c794fbd - Browse repository at this point
Copy the full SHA c794fbdView commit details