datapath: Add support for Linux 3.11
[sliver-openvswitch.git] / datapath / linux / compat / include / linux / netdevice.h
index d282201..c5c366b 100644 (file)
@@ -130,4 +130,11 @@ static inline struct net_device *netdev_master_upper_dev_get(struct net_device *
 int dev_queue_xmit(struct sk_buff *skb);
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
+static inline struct net_device *netdev_notifier_info_to_dev(void *info)
+{
+       return info;
+}
+#endif
+
 #endif