[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SJ2PR11MB82977465D4F08C66FAE2334CEAF82@SJ2PR11MB8297.namprd11.prod.outlook.com>
Date: Tue, 4 Jun 2024 06:50:53 +0000
From: "Rout, ChandanX" <chandanx.rout@...el.com>
To: "Fijalkowski, Maciej" <maciej.fijalkowski@...el.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "Zaremba, Larysa" <larysa.zaremba@...el.com>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "Kubiak, Michal" <michal.kubiak@...el.com>,
"Nguyen, Anthony L" <anthony.l.nguyen@...el.com>, "Karlsson, Magnus"
<magnus.karlsson@...el.com>, "Kuruvinakunnel, George"
<george.kuruvinakunnel@...el.com>, "Pandey, Atul" <atul.pandey@...el.com>,
"Nagaraju, Shwetha" <shwetha.nagaraju@...el.com>, "Nagraj, Shravan"
<shravan.nagraj@...el.com>
Subject: RE: [Intel-wired-lan] [PATCH v2 iwl-net 6/8] ice: improve updating
ice_{t, r}x_ring::xsk_pool
>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of
>Fijalkowski, Maciej
>Sent: Wednesday, May 29, 2024 4:54 PM
>To: intel-wired-lan@...ts.osuosl.org
>Cc: Fijalkowski, Maciej <maciej.fijalkowski@...el.com>; Zaremba, Larysa
><larysa.zaremba@...el.com>; netdev@...r.kernel.org; Kubiak, Michal
><michal.kubiak@...el.com>; Nguyen, Anthony L
><anthony.l.nguyen@...el.com>; Karlsson, Magnus
><magnus.karlsson@...el.com>
>Subject: [Intel-wired-lan] [PATCH v2 iwl-net 6/8] ice: improve updating ice_{t,
>r}x_ring::xsk_pool
>
>xsk_buff_pool pointers that ice ring structs hold are updated via ndo_bpf that is
>executed in process context while it can be read by remote CPU at the same
>time within NAPI poll. Use synchronize_net() after pointer update and
>{READ,WRITE}_ONCE() when working with mentioned pointer.
>
>Fixes: 2d4238f55697 ("ice: Add support for AF_XDP")
>Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@...el.com>
>---
> drivers/net/ethernet/intel/ice/ice.h | 6 +-
> drivers/net/ethernet/intel/ice/ice_base.c | 4 +-
>drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
>drivers/net/ethernet/intel/ice/ice_txrx.c | 4 +-
>drivers/net/ethernet/intel/ice/ice_xsk.c | 78 ++++++++++++++---------
>drivers/net/ethernet/intel/ice/ice_xsk.h | 4 +-
> 6 files changed, 59 insertions(+), 39 deletions(-)
>
Tested-by: Chandan Kumar Rout <chandanx.rout@...el.com> (A Contingent Worker at Intel)
Powered by blists - more mailing lists