summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2024-07-26 20:17:14 +0200
committerTony Nguyen <anthony.l.nguyen@intel.com>2024-07-29 17:52:29 +0200
commitebc33a3f8d0aeddf19fd5827add24b82ae171829 (patch)
treee8c1a5d320752997cc73df853be09098c04ef672 /lib
parentice: toggle netif_carrier when setting up XSK pool (diff)
downloadlinux-ebc33a3f8d0aeddf19fd5827add24b82ae171829.tar.xz
linux-ebc33a3f8d0aeddf19fd5827add24b82ae171829.zip
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") Reviewed-by: Shannon Nelson <shannon.nelson@amd.com> Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel) Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions