Verified Commit 21186ca9 authored by Jan Pavlinec's avatar Jan Pavlinec Committed by Josef Schlehofer
Browse files

patches/openwrt: add patch to remove mnveta tx queue workaround

parent 3a3e025c
Pipeline #76758 failed with stage
in 24 seconds
From 3e1c81c203d750088084c1c081bc115256ed3f87 Mon Sep 17 00:00:00 2001
From: Jan Pavlinec <jan.pavlinec@nic.cz>
Date: Tue, 26 Jan 2021 14:07:49 +0100
Subject: [PATCH] linux: add patch to remove mnveta tx queue workaround
---
...99-remove-mnveta-tx-queue-workaround.patch | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 target/linux/mvebu/patches-4.14/999-remove-mnveta-tx-queue-workaround.patch
diff --git a/target/linux/mvebu/patches-4.14/999-remove-mnveta-tx-queue-workaround.patch b/target/linux/mvebu/patches-4.14/999-remove-mnveta-tx-queue-workaround.patch
new file mode 100644
index 0000000000..bb0d456394
--- /dev/null
+++ b/target/linux/mvebu/patches-4.14/999-remove-mnveta-tx-queue-workaround.patch
@@ -0,0 +1,28 @@
+Index: linux-4.14.216/drivers/net/ethernet/marvell/mvneta.c
+===================================================================
+--- linux-4.14.216.orig/drivers/net/ethernet/marvell/mvneta.c
++++ linux-4.14.216/drivers/net/ethernet/marvell/mvneta.c
+@@ -4236,15 +4236,6 @@ static int mvneta_ethtool_set_eee(struct
+ return phylink_ethtool_set_eee(pp->phylink, eee);
+ }
+
+-static u16 mvneta_select_queue(struct net_device *dev, struct sk_buff *skb,
+- void *accel_priv,
+- select_queue_fallback_t fallback)
+-{
+- /* XXX: hardware queue scheduling is broken,
+- * use only one queue until it is fixed */
+- return 0;
+-}
+-
+ static const struct net_device_ops mvneta_netdev_ops = {
+ .ndo_open = mvneta_open,
+ .ndo_stop = mvneta_stop,
+@@ -4255,7 +4246,6 @@ static const struct net_device_ops mvnet
+ .ndo_fix_features = mvneta_fix_features,
+ .ndo_get_stats64 = mvneta_get_stats64,
+ .ndo_do_ioctl = mvneta_ioctl,
+- .ndo_select_queue = mvneta_select_queue,
+ };
+
+ static const struct ethtool_ops mvneta_eth_tool_ops = {
--
2.17.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment