Both i40e and ice wait for an RCU grace period once per XDP Tx ring when tearing the rings down, so the time spent scales with the number of queues (i40e) or CPUs (ice). The wait only has to cover in-progress ndo_xdp_xmit and ndo_xsk_wakeup calls, and one grace period taken before the loop does that for all rings.
Compile-tested with W=1 (allmodconfig, x86_64); not run on hardware. Shitalkumar Gandhi (2): i40e: wait for one RCU grace period in i40e_down(), not one per queue ice: wait for one RCU grace period when destroying XDP rings drivers/net/ethernet/intel/i40e/i40e_main.c | 15 +++++++++------ drivers/net/ethernet/intel/ice/ice_main.c | 10 +++++++--- 2 files changed, 16 insertions(+), 9 deletions(-) -- 2.53.0
