diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-01 16:15:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-03 21:50:53 -0700 |
commit | a8c9486b816f74d4645144db9e8fa2f711c1fc4b (patch) | |
tree | 950214451e4bb2172cd9beb8f27a415664f77909 /include/linux/mroute.h | |
parent | 4c9687098f245601e9d94178715ee03afbcc6f80 (diff) | |
download | talos-op-linux-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.tar.gz talos-op-linux-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.zip |
ipmr: RCU protection for mfc_cache_array
Use RCU & RTNL protection for mfc_cache_array[]
ipmr_cache_find() is called under rcu_read_lock();
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mroute.h')
-rw-r--r-- | include/linux/mroute.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h index fa04b246c9ae..0fa7a3a874c8 100644 --- a/include/linux/mroute.h +++ b/include/linux/mroute.h @@ -213,6 +213,7 @@ struct mfc_cache { unsigned char ttls[MAXVIFS]; /* TTL thresholds */ } res; } mfc_un; + struct rcu_head rcu; }; #define MFC_STATIC 1 |