aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-04-13 01:03:20 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-13 17:49:33 -0400
commitd658f8a0e63b6476148162aa7a3ffffc58dcad52 (patch)
tree25087c18eb91bbe040cf5c9b5e1710d35e37328f /include
parente258beb22f4d3ea3dc88586ffc9c990d0eb03380 (diff)
ipv4: ipmr: remove net pointer from struct mfc_cache
Now that cache entries in unres_queue don't need to be distinguished by their network namespace pointer anymore, we can remove it from struct mfc_cache add pass the namespace as function argument to the functions that need it. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mroute.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/mroute.h b/include/linux/mroute.h
index c5f3d53548e2..de7780a6dd32 100644
--- a/include/linux/mroute.h
+++ b/include/linux/mroute.h
@@ -192,9 +192,6 @@ struct vif_device {
192 192
193struct mfc_cache { 193struct mfc_cache {
194 struct mfc_cache *next; /* Next entry on cache line */ 194 struct mfc_cache *next; /* Next entry on cache line */
195#ifdef CONFIG_NET_NS
196 struct net *mfc_net;
197#endif
198 __be32 mfc_mcastgrp; /* Group the entry belongs to */ 195 __be32 mfc_mcastgrp; /* Group the entry belongs to */
199 __be32 mfc_origin; /* Source of packet */ 196 __be32 mfc_origin; /* Source of packet */
200 vifi_t mfc_parent; /* Source interface */ 197 vifi_t mfc_parent; /* Source interface */
@@ -217,18 +214,6 @@ struct mfc_cache {
217 } mfc_un; 214 } mfc_un;
218}; 215};
219 216
220static inline
221struct net *mfc_net(const struct mfc_cache *mfc)
222{
223 return read_pnet(&mfc->mfc_net);
224}
225
226static inline
227void 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 217#define MFC_STATIC 1
233#define MFC_NOTIFY 2 218#define MFC_NOTIFY 2
234 219