Maciej Fijalkowski 59e92bfe4d ice: xsk: Borrow xdp_tx_active logic from i40e
One of the things that commit 5574ff7b7b3d ("i40e: optimize AF_XDP Tx
completion path") introduced was the @xdp_tx_active field. Its usage
from i40e can be adjusted to ice driver and give us positive performance
results.

If the descriptor that @next_dd points to has been sent by HW (its DD
bit is set), then we are sure that at least quarter of the ring is ready
to be cleaned. If @xdp_tx_active is 0 which means that related xdp_ring
is not used for XDP_{TX, REDIRECT} workloads, then we know how many XSK
entries should placed to completion queue, IOW walking through the ring
can be skipped.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220125160446.78976-9-maciej.fijalkowski@intel.com
2022-01-27 17:25:33 +01:00
..
2022-01-19 11:15:19 +02:00
2022-01-16 08:08:11 +02:00
2022-01-18 14:03:34 +02:00
2022-01-16 06:52:38 +02:00
2022-01-16 15:53:00 +02:00
2022-01-12 15:46:11 -08:00
2022-01-11 11:35:28 -08:00
2022-01-12 11:11:34 -08:00
2022-01-16 08:08:11 +02:00
2022-01-12 10:35:23 -08:00
2022-01-16 08:08:11 +02:00
2022-01-16 08:08:11 +02:00
2022-01-11 11:26:57 -08:00
2022-01-10 12:58:46 -08:00
2022-01-12 15:46:11 -08:00
2022-01-14 14:55:38 +01:00
2022-01-10 08:13:52 -08:00
2022-01-14 14:55:38 +01:00
2021-12-29 10:54:50 +01:00
2022-01-16 06:52:38 +02:00
2022-01-03 13:44:38 +01:00
2022-01-17 08:07:57 +02:00