aboutsummaryrefslogtreecommitdiff
path: root/include/net/garp.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-05-09 03:35:55 +0000
committerDavid S. Miller <davem@davemloft.net>2011-05-09 11:41:40 -0700
commitda37e368763f708d2ae5a81e61ec59372b831cf5 (patch)
tree0ee4b0509caca004aee6a69000d69d67c8bc0eef /include/net/garp.h
parent226bd3411471af42f7edbdfaf73f2d54ebb62a66 (diff)
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>
Diffstat (limited to 'include/net/garp.h')
-rw-r--r--include/net/garp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/garp.h b/include/net/garp.h
index f4c295984c4..8cabbf08716 100644
--- a/include/net/garp.h
+++ b/include/net/garp.h
@@ -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);