mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
garp: remove one synchronize_rcu() call
Speedup vlan dismantling in CONFIG_VLAN_8021Q_GVRP=y cases, by using a call_rcu() to free the memory instead of waiting with expensive synchronize_rcu() [ while RTNL is held ] Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Cc: Ben Greear <greearb@candelatech.com> Cc: Patrick McHardy <kaber@trash.net> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
226bd34114
commit
da37e36876
2 changed files with 7 additions and 2 deletions
|
@ -108,6 +108,7 @@ struct garp_applicant {
|
|||
|
||||
struct garp_port {
|
||||
struct garp_applicant __rcu *applicants[GARP_APPLICATION_MAX + 1];
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
extern int garp_register_application(struct garp_application *app);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue