diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mroute6.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/mroute6.h b/include/linux/mroute6.h index 2caa1a8e525d..04e2e54d0404 100644 --- a/include/linux/mroute6.h +++ b/include/linux/mroute6.h | |||
@@ -183,9 +183,6 @@ struct mif_device { | |||
183 | 183 | ||
184 | struct mfc6_cache { | 184 | struct mfc6_cache { |
185 | struct mfc6_cache *next; /* Next entry on cache line */ | 185 | struct mfc6_cache *next; /* Next entry on cache line */ |
186 | #ifdef CONFIG_NET_NS | ||
187 | struct net *mfc6_net; | ||
188 | #endif | ||
189 | struct in6_addr mf6c_mcastgrp; /* Group the entry belongs to */ | 186 | struct in6_addr mf6c_mcastgrp; /* Group the entry belongs to */ |
190 | struct in6_addr mf6c_origin; /* Source of packet */ | 187 | struct in6_addr mf6c_origin; /* Source of packet */ |
191 | mifi_t mf6c_parent; /* Source interface */ | 188 | mifi_t mf6c_parent; /* Source interface */ |
@@ -208,18 +205,6 @@ struct mfc6_cache { | |||
208 | } mfc_un; | 205 | } mfc_un; |
209 | }; | 206 | }; |
210 | 207 | ||
211 | static inline | ||
212 | struct net *mfc6_net(const struct mfc6_cache *mfc) | ||
213 | { | ||
214 | return read_pnet(&mfc->mfc6_net); | ||
215 | } | ||
216 | |||
217 | static inline | ||
218 | void mfc6_net_set(struct mfc6_cache *mfc, struct net *net) | ||
219 | { | ||
220 | write_pnet(&mfc->mfc6_net, hold_net(net)); | ||
221 | } | ||
222 | |||
223 | #define MFC_STATIC 1 | 208 | #define MFC_STATIC 1 |
224 | #define MFC_NOTIFY 2 | 209 | #define MFC_NOTIFY 2 |
225 | 210 | ||