From 9de253c75f2ed8fe298a49e0927e079369f17d31 Mon Sep 17 00:00:00 2001 From: Dmytro Linkin Date: Wed, 30 Oct 2019 14:40:35 +0200 Subject: lib/tc: Fix flow dump for tunnel id equal zero Tunnel id 0 is not printed unless tunnel flag FLOW_TNL_F_KEY is set. Fix that by always setting FLOW_TNL_F_KEY when tunnel id is valid. Fixes: 0227bf092ee6 ("lib/tc: Support optional tunnel id") Signed-off-by: Dmytro Linkin Reviewed-by: Roi Dayan Signed-off-by: Simon Horman --- lib/netdev-offload-tc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netdev-offload-tc.c b/lib/netdev-offload-tc.c index a6b03015d..45d02ba21 100644 --- a/lib/netdev-offload-tc.c +++ b/lib/netdev-offload-tc.c @@ -600,6 +600,7 @@ parse_tc_flower_to_match(struct tc_flower *flower, if (flower->tunnel) { if (flower->mask.tunnel.id) { match_set_tun_id(match, flower->key.tunnel.id); + match->flow.tunnel.flags |= FLOW_TNL_F_KEY; } if (flower->key.tunnel.ipv4.ipv4_dst) { match_set_tun_src(match, flower->key.tunnel.ipv4.ipv4_src); -- 2.14.1