X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpending-5.4%2F642-net-8021q-support-hardware-flow-table-offload.patch;h=d67cad715931061da245aaa765933995b7286d0a;hb=4e0c54bc5bc8381e031af5147b66b4dadeecc626;hp=7547c14beded64e44f4aede63f10ec108ccbd533;hpb=c16517d26de30c90dabce1e456615fd7fbdce07c;p=oweals%2Fopenwrt.git diff --git a/target/linux/generic/pending-5.4/642-net-8021q-support-hardware-flow-table-offload.patch b/target/linux/generic/pending-5.4/642-net-8021q-support-hardware-flow-table-offload.patch index 7547c14bed..d67cad7159 100644 --- a/target/linux/generic/pending-5.4/642-net-8021q-support-hardware-flow-table-offload.patch +++ b/target/linux/generic/pending-5.4/642-net-8021q-support-hardware-flow-table-offload.patch @@ -9,18 +9,19 @@ Signed-off-by: Felix Fietkau --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c -@@ -32,6 +32,10 @@ +@@ -27,6 +27,11 @@ #include #include - #include + +#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) +#include +#include +#endif - ++ #include "vlan.h" #include "vlanproc.h" -@@ -771,6 +775,27 @@ static int vlan_dev_get_iflink(const str + #include +@@ -744,6 +749,27 @@ static int vlan_dev_get_iflink(const str return real_dev->ifindex; } @@ -48,9 +49,9 @@ Signed-off-by: Felix Fietkau static const struct ethtool_ops vlan_ethtool_ops = { .get_link_ksettings = vlan_ethtool_get_link_ksettings, .get_drvinfo = vlan_ethtool_get_drvinfo, -@@ -808,6 +833,9 @@ static const struct net_device_ops vlan_ +@@ -782,6 +808,9 @@ static const struct net_device_ops vlan_ + #endif .ndo_fix_features = vlan_dev_fix_features, - .ndo_get_lock_subclass = vlan_dev_get_lock_subclass, .ndo_get_iflink = vlan_dev_get_iflink, +#if IS_ENABLED(CONFIG_NF_FLOW_TABLE) + .ndo_flow_offload_check = vlan_dev_flow_offload_check,