datapath: fix vport-netdev unregister
[sliver-openvswitch.git] / datapath / linux / compat / include / linux / netdevice.h
index 4e2b7f5..d282201 100644 (file)
@@ -118,6 +118,16 @@ static inline void netdev_upper_dev_unlink(struct net_device *dev,
                                           struct net_device *upper_dev)
 {
 }
+
+static inline struct net_device *netdev_master_upper_dev_get(struct net_device *dev)
+{
+       return NULL;
+}
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
+#define dev_queue_xmit rpl_dev_queue_xmit
+int dev_queue_xmit(struct sk_buff *skb);
 #endif
 
 #endif