1 From: Pablo Neira Ayuso <pablo@netfilter.org>
2 Date: Wed, 24 Mar 2021 02:30:44 +0100
3 Subject: [PATCH] netfilter: flowtable: add dsa support
5 Replace the master ethernet device by the dsa slave port. Packets coming
6 in from the software ingress path use the dsa slave port as input
9 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 --- a/net/netfilter/nft_flow_offload.c
13 +++ b/net/netfilter/nft_flow_offload.c
14 @@ -89,6 +89,7 @@ static void nft_dev_path_info(const stru
15 path = &stack->path[i];
17 case DEV_PATH_ETHERNET:
21 info->indev = path->dev;
22 @@ -97,6 +98,10 @@ static void nft_dev_path_info(const stru
24 if (path->type == DEV_PATH_ETHERNET)
26 + if (path->type == DEV_PATH_DSA) {
27 + i = stack->num_paths;
31 /* DEV_PATH_VLAN and DEV_PATH_PPPOE */
32 if (info->num_encaps >= NF_FLOW_TABLE_ENCAP_MAX) {