@@ -281,4 +281,10 @@ static inline void netdev_reset_rx_headroom(struct net_device *dev)
#endif
+#ifdef IFF_NO_QUEUE
+#define HAVE_IFF_NO_QUEUE
+#else
+#define IFF_NO_QUEUE 0
+#endif
+
#endif /* __LINUX_NETDEVICE_WRAPPER_H */
@@ -169,11 +169,14 @@ static void do_setup(struct net_device *netdev)
netdev->priv_flags &= ~IFF_TX_SKB_SHARING;
netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_OPENVSWITCH |
- IFF_PHONY_HEADROOM;
+ IFF_PHONY_HEADROOM | IFF_NO_QUEUE;
netdev->destructor = internal_dev_destructor;
netdev->ethtool_ops = &internal_dev_ethtool_ops;
netdev->rtnl_link_ops = &internal_dev_link_ops;
+
+#ifndef HAVE_IFF_NO_QUEUE
netdev->tx_queue_len = 0;
+#endif
netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST |
NETIF_F_HIGHDMA | NETIF_F_HW_CSUM |
Introduced by upstream commit 4272cc51a6d ("openvswitch: Convert to using IFF_NO_QUEUE"). Signed-off-by: Pravin B Shelar <pshelar@ovn.org> --- datapath/linux/compat/include/linux/netdevice.h | 6 ++++++ datapath/vport-internal_dev.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-)