aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch
diff options
context:
space:
mode:
authorJakov Petrina <jakov.petrina@sartura.hr>2020-05-15 12:52:35 +0200
committerLuka Perkov <luka.perkov@sartura.hr>2020-05-28 11:43:13 +0200
commit76f9aa6f4bfd12fba34fc44aef890c48d4fb1024 (patch)
tree17797c2a37ae9535653e5a3484cf394e064765ce /target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch
parente430376b48c31077ec7364af6692385ed50dcc78 (diff)
downloadupstream-76f9aa6f4bfd12fba34fc44aef890c48d4fb1024.tar.gz
upstream-76f9aa6f4bfd12fba34fc44aef890c48d4fb1024.tar.bz2
upstream-76f9aa6f4bfd12fba34fc44aef890c48d4fb1024.zip
linux: mvebu: backport mvneta XDP support
This patch backports XDP support in the mvneta driver used by Marvell ARMADA 37x, 38x and 37xx series SoCs. Supported actions are: - XDP_DROP - XDP_PASS - XDP_REDIRECT - XDP_TX Patches are present upstream as following commits: * b0a43db9087a net: mvneta: add XDP_TX support * 9e58c8b41065 net: mvneta: make tx buffer array agnostic * fa383f6b77a2 net: mvneta: move header prefetch in mvneta_swbm_rx_frame * 0db51da7a8e9 net: mvneta: add basic XDP support * 8dc9a0888f4c net: mvneta: rely on build_skb in mvneta_rx_swbm poll routine * 568a3fa24a95 net: mvneta: introduce page pool API for sw buffer manager * ff519e2acd46 net: mvneta: introduce mvneta_update_stats routine Signed-off-by: Jakov Petrina <jakov.petrina@sartura.hr>
Diffstat (limited to 'target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch')
-rw-r--r--target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch b/target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch
index c62839c82d..1056d801be 100644
--- a/target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch
+++ b/target/linux/mvebu/patches-5.4/300-mvneta-tx-queue-workaround.patch
@@ -9,7 +9,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
-@@ -4332,6 +4332,14 @@ static int mvneta_ethtool_set_eee(struct
+@@ -4644,6 +4644,14 @@ static int mvneta_ethtool_set_eee(struct
return phylink_ethtool_set_eee(pp->phylink, eee);
}
@@ -24,11 +24,11 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
static const struct net_device_ops mvneta_netdev_ops = {
.ndo_open = mvneta_open,
.ndo_stop = mvneta_stop,
-@@ -4342,6 +4350,7 @@ static const struct net_device_ops mvnet
+@@ -4654,6 +4662,7 @@ 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,
+ .ndo_bpf = mvneta_xdp,
+ .ndo_xdp_xmit = mvneta_xdp_xmit,
};
-
- static const struct ethtool_ops mvneta_eth_tool_ops = {