Skip to content
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

Closed
wants to merge 6 commits into from

Commits on Nov 2, 2020

  1. adding ci files

    kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    d7760de View commit details
    Browse the repository at this point in the history
  2. 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>
    weqaar authored and kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    e86c800 View commit details
    Browse the repository at this point in the history
  3. 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>
    weqaar authored and kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    86865e3 View commit details
    Browse the repository at this point in the history
  4. 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>
    weqaar authored and kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    df6dc28 View commit details
    Browse the repository at this point in the history
  5. 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>
    weqaar authored and kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    3785441 View commit details
    Browse the repository at this point in the history
  6. 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>
    weqaar authored and kernel-patches-bot committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    c794fbd View commit details
    Browse the repository at this point in the history