diff options
Diffstat (limited to 'include/linux/mroute.h')
-rw-r--r-- | include/linux/mroute.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h index c5f3d53548e2..fa04b246c9ae 100644 --- a/include/linux/mroute.h +++ b/include/linux/mroute.h | |||
@@ -27,7 +27,8 @@ | |||
27 | #define MRT_DEL_MFC (MRT_BASE+5) /* Delete a multicast forwarding entry */ | 27 | #define MRT_DEL_MFC (MRT_BASE+5) /* Delete a multicast forwarding entry */ |
28 | #define MRT_VERSION (MRT_BASE+6) /* Get the kernel multicast version */ | 28 | #define MRT_VERSION (MRT_BASE+6) /* Get the kernel multicast version */ |
29 | #define MRT_ASSERT (MRT_BASE+7) /* Activate PIM assert mode */ | 29 | #define MRT_ASSERT (MRT_BASE+7) /* Activate PIM assert mode */ |
30 | #define MRT_PIM (MRT_BASE+8) /* enable PIM code */ | 30 | #define MRT_PIM (MRT_BASE+8) /* enable PIM code */ |
31 | #define MRT_TABLE (MRT_BASE+9) /* Specify mroute table ID */ | ||
31 | 32 | ||
32 | #define SIOCGETVIFCNT SIOCPROTOPRIVATE /* IP protocol privates */ | 33 | #define SIOCGETVIFCNT SIOCPROTOPRIVATE /* IP protocol privates */ |
33 | #define SIOCGETSGCNT (SIOCPROTOPRIVATE+1) | 34 | #define SIOCGETSGCNT (SIOCPROTOPRIVATE+1) |
@@ -191,10 +192,7 @@ struct vif_device { | |||
191 | #define VIFF_STATIC 0x8000 | 192 | #define VIFF_STATIC 0x8000 |
192 | 193 | ||
193 | struct mfc_cache { | 194 | struct mfc_cache { |
194 | struct mfc_cache *next; /* Next entry on cache line */ | 195 | struct list_head list; |
195 | #ifdef CONFIG_NET_NS | ||
196 | struct net *mfc_net; | ||
197 | #endif | ||
198 | __be32 mfc_mcastgrp; /* Group the entry belongs to */ | 196 | __be32 mfc_mcastgrp; /* Group the entry belongs to */ |
199 | __be32 mfc_origin; /* Source of packet */ | 197 | __be32 mfc_origin; /* Source of packet */ |
200 | vifi_t mfc_parent; /* Source interface */ | 198 | vifi_t mfc_parent; /* Source interface */ |
@@ -217,18 +215,6 @@ struct mfc_cache { | |||
217 | } mfc_un; | 215 | } mfc_un; |
218 | }; | 216 | }; |
219 | 217 | ||
220 | static inline | ||
221 | struct net *mfc_net(const struct mfc_cache *mfc) | ||
222 | { | ||
223 | return read_pnet(&mfc->mfc_net); | ||
224 | } | ||
225 | |||
226 | static inline | ||
227 | void mfc_net_set(struct mfc_cache *mfc, struct net *net) | ||
228 | { | ||
229 | write_pnet(&mfc->mfc_net, hold_net(net)); | ||
230 | } | ||
231 | |||
232 | #define MFC_STATIC 1 | 218 | #define MFC_STATIC 1 |
233 | #define MFC_NOTIFY 2 | 219 | #define MFC_NOTIFY 2 |
234 | 220 | ||