aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/inetdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/inetdevice.h')
-rw-r--r--include/linux/inetdevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h
index 0d678aefe69d..ae174ca565c9 100644
--- a/include/linux/inetdevice.h
+++ b/include/linux/inetdevice.h
@@ -220,6 +220,13 @@ static inline struct in_device *__in_dev_get_rtnl(const struct net_device *dev)
220 return rtnl_dereference(dev->ip_ptr); 220 return rtnl_dereference(dev->ip_ptr);
221} 221}
222 222
223static inline struct neigh_parms *__in_dev_arp_parms_get_rcu(const struct net_device *dev)
224{
225 struct in_device *in_dev = __in_dev_get_rcu(dev);
226
227 return in_dev ? in_dev->arp_parms : NULL;
228}
229
223void in_dev_finish_destroy(struct in_device *idev); 230void in_dev_finish_destroy(struct in_device *idev);
224 231
225static inline void in_dev_put(struct in_device *idev) 232static inline void in_dev_put(struct in_device *idev)