[Intel-wired-lan] [PATCH iwl-net 1/3] ice: remove af_xdp_zc_qps bitmap

Rout, ChandanX chandanx.rout at intel.com
Thu May 30 05:53:42 UTC 2024



>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Zaremba, Larysa
>Sent: Wednesday, May 15, 2024 9:32 PM
>To: intel-wired-lan at lists.osuosl.org; Keller, Jacob E <jacob.e.keller at intel.com>
>Cc: Fijalkowski, Maciej <maciej.fijalkowski at intel.com>; Jesper Dangaard Brouer
><hawk at kernel.org>; Daniel Borkmann <daniel at iogearbox.net>; Zaremba,
>Larysa <larysa.zaremba at intel.com>; Kitszel, Przemyslaw
><przemyslaw.kitszel at intel.com>; John Fastabend
><john.fastabend at gmail.com>; Alexei Starovoitov <ast at kernel.org>; David S.
>Miller <davem at davemloft.net>; Eric Dumazet <edumazet at google.com>;
>netdev at vger.kernel.org; Jakub Kicinski <kuba at kernel.org>;
>bpf at vger.kernel.org; Paolo Abeni <pabeni at redhat.com>; Magnus Karlsson
><magnus.karlsson at gmail.com>; Bagnucki, Igor <igor.bagnucki at intel.com>;
>linux-kernel at vger.kernel.org
>Subject: [Intel-wired-lan] [PATCH iwl-net 1/3] ice: remove af_xdp_zc_qps
>bitmap
>
>Referenced commit has introduced a bitmap to distinguish between ZC and
>copy-mode AF_XDP queues, because xsk_get_pool_from_qid() does not do
>this for us.
>
>The bitmap would be especially useful when restoring previous state after
>rebuild, if only it was not reallocated in the process. This leads to e.g.
>xdpsock dying after changing number of queues.
>
>Instead of preserving the bitmap during the rebuild, remove it completely and
>distinguish between ZC and copy-mode queues based on the presence of a
>device associated with the pool.
>
>Fixes: e102db780e1c ("ice: track AF_XDP ZC enabled queues in bitmap")
>Reviewed-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>
>Signed-off-by: Larysa Zaremba <larysa.zaremba at intel.com>
>---
> drivers/net/ethernet/intel/ice/ice.h     | 32 ++++++++++++++++--------
> drivers/net/ethernet/intel/ice/ice_lib.c |  8 ------
>drivers/net/ethernet/intel/ice/ice_xsk.c | 13 +++++-----
> 3 files changed, 27 insertions(+), 26 deletions(-)
>

Tested-by: Chandan Kumar Rout <chandanx.rout at intel.com> (A Contingent Worker at Intel)



More information about the Intel-wired-lan mailing list