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)
commit5fa23e0b23fb14364a396593a4e083606a6d6893
tree57e43f6d1dbe84477086693b0b21df8f61d397e7
parent31c5f7f3f45aab8231c76be6d87c7503f442d019
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