]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Nov 2021 12:52:34 +0000 (13:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Nov 2021 12:52:34 +0000 (13:52 +0100)
added patches:
ifb-fix-building-without-config_net_cls_act.patch

queue-5.4/ifb-fix-building-without-config_net_cls_act.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/ifb-fix-building-without-config_net_cls_act.patch b/queue-5.4/ifb-fix-building-without-config_net_cls_act.patch
new file mode 100644 (file)
index 0000000..801f591
--- /dev/null
@@ -0,0 +1,38 @@
+From 7444d706be31753f65052c7f6325fc8470cc1789 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Fri, 29 Oct 2021 13:30:51 +0200
+Subject: ifb: fix building without CONFIG_NET_CLS_ACT
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit 7444d706be31753f65052c7f6325fc8470cc1789 upstream.
+
+The driver no longer depends on this option, but it fails to
+build if it's disabled because the skb->tc_skip_classify is
+hidden behind an #ifdef:
+
+drivers/net/ifb.c:81:8: error: no member named 'tc_skip_classify' in 'struct sk_buff'
+                skb->tc_skip_classify = 1;
+
+Use the same #ifdef around the assignment.
+
+Fixes: 046178e726c2 ("ifb: Depend on netfilter alternatively to tc")
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ifb.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/net/ifb.c
++++ b/drivers/net/ifb.c
+@@ -76,7 +76,9 @@ static void ifb_ri_tasklet(unsigned long
+       while ((skb = __skb_dequeue(&txp->tq)) != NULL) {
+               skb->redirected = 0;
++#ifdef CONFIG_NET_CLS_ACT
+               skb->tc_skip_classify = 1;
++#endif
+               u64_stats_update_begin(&txp->tsync);
+               txp->tx_packets++;
index 682f18d65c8af36e341f7de8129e7d5b9ecd7595..f366c92f9765da5fc3b61dde9267a69f796fb9d5 100644 (file)
@@ -93,3 +93,4 @@ can-j1939-j1939_tp_cmd_recv-ignore-abort-message-in-the-bam-transport.patch
 can-j1939-j1939_can_recv-ignore-messages-with-invalid-source-address.patch
 powerpc-85xx-fix-oops-when-mpc85xx_smp_guts_ids-node-cannot-be-found.patch
 serial-core-fix-initializing-and-restoring-termios-speed.patch
+ifb-fix-building-without-config_net_cls_act.patch