mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
4c9687098f
commit
a8c9486b81
2 changed files with 48 additions and 40 deletions
|
@ -213,6 +213,7 @@ struct mfc_cache {
|
|||
unsigned char ttls[MAXVIFS]; /* TTL thresholds */
|
||||
} res;
|
||||
} mfc_un;
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
#define MFC_STATIC 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue