summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_flow_table_core.c
diff options
context:
space:
mode:
authorRoi Dayan <roid@nvidia.com>2021-04-13 11:06:05 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-13 13:47:00 +0200
commit78ed0a9bc6db76f8e5f5f4cb0d2b2f0d1bb21b24 (patch)
tree7d42eb7a1cfba6213e7db1d6581a3576cf243044 /net/netfilter/nf_flow_table_core.c
parent9b1a4d0f914b1186248fc88b1cb6ee49e336a2b2 (diff)
downloadlinux-stable-78ed0a9bc6db76f8e5f5f4cb0d2b2f0d1bb21b24.tar.gz
linux-stable-78ed0a9bc6db76f8e5f5f4cb0d2b2f0d1bb21b24.tar.bz2
linux-stable-78ed0a9bc6db76f8e5f5f4cb0d2b2f0d1bb21b24.zip
netfilter: flowtable: Add FLOW_OFFLOAD_XMIT_UNSPEC xmit type
It could be xmit type was not set and would default to FLOW_OFFLOAD_XMIT_NEIGH and in this type the gc expect to have a route info. Fix that by adding FLOW_OFFLOAD_XMIT_UNSPEC which defaults to 0. Fixes: 8b9229d15877 ("netfilter: flowtable: dst_check() from garbage collector path") Signed-off-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_flow_table_core.c')
-rw-r--r--net/netfilter/nf_flow_table_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/nf_flow_table_core.c b/net/netfilter/nf_flow_table_core.c
index 76573bae6664..39c02d1aeedf 100644
--- a/net/netfilter/nf_flow_table_core.c
+++ b/net/netfilter/nf_flow_table_core.c
@@ -130,6 +130,9 @@ static int flow_offload_fill_route(struct flow_offload *flow,
flow_tuple->dst_cache = dst;
flow_tuple->dst_cookie = flow_offload_dst_cookie(flow_tuple);
break;
+ default:
+ WARN_ON_ONCE(1);
+ break;
}
flow_tuple->xmit_type = route->tuple[dir].xmit_type;