]> git.dujemihanovic.xyz Git - linux.git/commit
ice: replace synchronize_rcu with synchronize_net
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Fri, 26 Jul 2024 18:17:11 +0000 (20:17 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 29 Jul 2024 15:52:29 +0000 (08:52 -0700)
commit405d9999aa0b4ae467ef391d1d9c7e0d30ad0841
treec2c0da42ce0eae01cb0976006d44131eaedc41a6
parent1ff72a2f67791cd4ddad19ed830445f57b30e992
ice: replace synchronize_rcu with synchronize_net

Given that ice_qp_dis() is called under rtnl_lock, synchronize_net() can
be called instead of synchronize_rcu() so that XDP rings can finish its
job in a faster way. Also let us do this as earlier in XSK queue disable
flow.

Additionally, turn off regular Tx queue before disabling irqs and NAPI.

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>
drivers/net/ethernet/intel/ice/ice_xsk.c