summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-10-01 16:15:08 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-03 21:50:53 -0700
commita8c9486b816f74d4645144db9e8fa2f711c1fc4b (patch)
tree950214451e4bb2172cd9beb8f27a415664f77909 /include
parent4c9687098f245601e9d94178715ee03afbcc6f80 (diff)
downloadop-kernel-dev-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.zip
op-kernel-dev-a8c9486b816f74d4645144db9e8fa2f711c1fc4b.tar.gz
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')
-rw-r--r--include/linux/mroute.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h
index fa04b24..0fa7a3a 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
OpenPOWER on IntegriCloud