From 75f55483f976534e46837130fcd16d3f2753031f Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Wed, 12 Aug 2020 16:00:06 +0800 Subject: [PATCH] generic/4.9: add missing line --- .../950-net-patch-linux-kernel-to-support-shortcut-fe.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/hack-4.9/950-net-patch-linux-kernel-to-support-shortcut-fe.patch b/target/linux/generic/hack-4.9/950-net-patch-linux-kernel-to-support-shortcut-fe.patch index ab1d89ec99..58a5ea11dd 100644 --- a/target/linux/generic/hack-4.9/950-net-patch-linux-kernel-to-support-shortcut-fe.patch +++ b/target/linux/generic/hack-4.9/950-net-patch-linux-kernel-to-support-shortcut-fe.patch @@ -47,7 +47,7 @@ Signed-off-by: Murat Sezgin + bool "Enables kernel network stack path for Shortcut Forwarding Engine" --- a/net/core/dev.c +++ b/net/core/dev.c -@@ -2974,7 +2974,15 @@ static int xmit_one(struct sk_buff *skb, struct net_device *dev, +@@ -2974,7 +2974,16 @@ static int xmit_one(struct sk_buff *skb, struct net_device *dev, #else if (!list_empty(&ptype_all) || !list_empty(&dev->ptype_all)) #endif @@ -56,6 +56,7 @@ Signed-off-by: Murat Sezgin + * go to any taps (by definition we're trying to bypass them). + */ + if (!skb->fast_forwarded) { ++#endif dev_queue_xmit_nit(skb, dev); +#ifdef CONFIG_SHORTCUT_FE + }