aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-04-05 21:57:48 +0200
committerDavid S. Miller <davem@davemloft.net>2022-04-06 14:08:49 +0100
commita333215e10cb5d3b1e0685ca117f0e9452215485 (patch)
tree6c2777e34b3389ed54bf4fc2edc382ec158aede0 /net/core/dev.c
parentnet: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) (diff)
downloadlinux-dev-a333215e10cb5d3b1e0685ca117f0e9452215485.tar.xz
linux-dev-a333215e10cb5d3b1e0685ca117f0e9452215485.zip
net: ethernet: mtk_eth_soc: implement flow offloading to WED devices
This allows hardware flow offloading from Ethernet to WLAN on MT7622 SoC Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 2ec17358d7b4..d5a362d53b34 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -701,6 +701,10 @@ int dev_fill_forward_path(const struct net_device *dev, const u8 *daddr,
if (WARN_ON_ONCE(last_dev == ctx.dev))
return -1;
}
+
+ if (!ctx.dev)
+ return ret;
+
path = dev_fwd_path(stack);
if (!path)
return -1;