aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netkit.c
diff options
context:
space:
mode:
authorXi Huang <[email protected]>2024-08-22 07:20:42 +0000
committerJakub Kicinski <[email protected]>2024-08-26 22:16:59 +0000
commit2c163922de69983e6ccedeb5c00dec85b6a17283 (patch)
treeb67669662a15ea0c26e2a57613e668c26faadf4d /drivers/net/netkit.c
parentipv6: avoid indirect calls for SOL_IP socket options (diff)
downloadkernel-2c163922de69983e6ccedeb5c00dec85b6a17283.tar.gz
kernel-2c163922de69983e6ccedeb5c00dec85b6a17283.zip
net: dpaa: reduce number of synchronize_net() calls
In the function dpaa_napi_del(), we execute the netif_napi_del() for each cpu, which is actually a high overhead operation because each call to netif_napi_del() contains a synchronize_net(), i.e. an RCU operation. In fact, it is only necessary to call __netif_napi_del and use synchronize_net() once outside of the loop. This change is similar to commit 2543a6000e593a ("gro_cells: reduce number of synchronize_net() calls") and commit 5198d545dba8ad (" net: remove napi_hash_del() from driver-facing API") 5198d545db. Signed-off-by: Xi Huang <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions