]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Support XDP UMEM wake up mechanism
authorKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Thu, 13 Feb 2020 21:31:22 +0000 (13:31 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 19 Feb 2020 21:12:21 +0000 (13:12 -0800)
commit6e987b1bb4985f9b4a9d050256bb52c7a2a5869c
tree57e43f6d1dbe84477086693b0b21df8f61d397e7
parentbdaf7c351a2e01e1ea7aa6e1013bd708efb7bb1c
ice: Support XDP UMEM wake up mechanism

Add support for a new AF_XDP feature that has already been introduced in
upstreamed Intel NIC drivers. If a user space application signals that
it might sleep using the new bind flag XDP_USE_NEED_WAKEUP, the driver
will then set this flag if it has no more buffers on the NIC Rx ring and
yield to the application. For Tx, it will set the flag if it has no
outstanding Tx completion interrupts and return to the application.

Signed-off-by: Krzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_xsk.c