projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netfilter: fix hardware offload regression (FS#1551)
[openwrt/openwrt.git]
/
target
/
linux
/
generic
/
pending-4.14
/
643-net-bridge-support-hardware-flow-table-offload.patch
diff --git
a/target/linux/generic/pending-4.14/643-net-bridge-support-hardware-flow-table-offload.patch
b/target/linux/generic/pending-4.14/643-net-bridge-support-hardware-flow-table-offload.patch
index 409f6bec2ccba1d9e02140d990155f2a306fd42e..a070fe16362af4380a8d033a63db814a99c16f73 100644
(file)
--- a/
target/linux/generic/pending-4.14/643-net-bridge-support-hardware-flow-table-offload.patch
+++ b/
target/linux/generic/pending-4.14/643-net-bridge-support-hardware-flow-table-offload.patch
@@
-13,7
+13,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
#include <linux/ethtool.h>
#include <linux/list.h>
#include <linux/netfilter_bridge.h>
#include <linux/ethtool.h>
#include <linux/list.h>
#include <linux/netfilter_bridge.h>
-+#if
def CONFIG_NF_FLOW_TABLE
++#if
IS_ENABLED(CONFIG_NF_FLOW_TABLE)
+#include <linux/netfilter.h>
+#include <net/netfilter/nf_flow_table.h>
+#endif
+#include <linux/netfilter.h>
+#include <net/netfilter/nf_flow_table.h>
+#endif
@@
-24,7
+24,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
.get_link = ethtool_op_get_link,
};
.get_link = ethtool_op_get_link,
};
-+#if
def CONFIG_NF_FLOW_TABLE
++#if
IS_ENABLED(CONFIG_NF_FLOW_TABLE)
+static int br_flow_offload_check(struct flow_offload_hw_path *path)
+{
+ struct net_device *dev = path->dev;
+static int br_flow_offload_check(struct flow_offload_hw_path *path)
+{
+ struct net_device *dev = path->dev;
@@
-53,7
+53,7
@@
Signed-off-by: Felix Fietkau <nbd@nbd.name>
.ndo_bridge_setlink = br_setlink,
.ndo_bridge_dellink = br_dellink,
.ndo_features_check = passthru_features_check,
.ndo_bridge_setlink = br_setlink,
.ndo_bridge_dellink = br_dellink,
.ndo_features_check = passthru_features_check,
-+#if
def CONFIG_NF_FLOW_TABLE
++#if
IS_ENABLED(CONFIG_NF_FLOW_TABLE)
+ .ndo_flow_offload_check = br_flow_offload_check,
+#endif
};
+ .ndo_flow_offload_check = br_flow_offload_check,
+#endif
};