Commit 2c163922 authored by Xi Huang's avatar Xi Huang Committed by Jakub Kicinski
Browse files

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 2543a600 ("gro_cells: reduce
number of synchronize_net() calls") and commit 5198d545 (" net:
remove napi_hash_del() from driver-facing API") 5198d545.

Signed-off-by: default avatarXi Huang <xuiagnh@gmail.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240822072042.42750-1-xuiagnh@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 89683b45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment