ice: Add support for AF_XDP
Add zero copy AF_XDP support. This patch adds zero copy support for Tx and Rx; code for zero copy is added to ice_xsk.h and ice_xsk.c. For Tx, implement ndo_xsk_wakeup. As with other drivers, reuse existing XDP Tx queues for this task, since XDP_REDIRECT guarantees mutual exclusion between different NAPI contexts based on CPU ID. In turn, a netdev can XDP_REDIRECT to another netdev with a different NAPI context, since the operation is bound to a specific core and each core has its own hardware ring. For Rx, allocate frames as MEM_TYPE_ZERO_COPY on queues that AF_XDP is enabled. Signed-off-by:Krzysztof Kazimierczak <krzysztof.kazimierczak@intel.com> Co-developed-by:
Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by:
Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by:
Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
parent
0891d6d4
-
mentioned in commit ad505705
-
mentioned in commit 1b002f37
-
mentioned in commit dcbaf72a
-
mentioned in commit afe8a3ba
-
mentioned in commit 8bea15ab
-
mentioned in commit e54ea8fc
-
mentioned in commit 70cf0b82
-
mentioned in commit 840cbbdc
-
mentioned in commit 6421edd0
-
mentioned in commit 61122657
-
mentioned in commit 1bfdcde7
-
mentioned in commit fe76b3e6
-
mentioned in commit b830c964
-
mentioned in commit cccba1ff
-
mentioned in commit b89a453c
-
mentioned in commit 5822c027
-
mentioned in commit 4c0b028e
-
mentioned in commit fdec2b40
Please register or sign in to comment