[ovs-dev] [PATCH] netdev-offload-tc: Fix using uninitialized recirc_act.

Ilya Maximets i.maximets at ovn.org
Fri Jan 3 19:06:32 UTC 2020


Fixes: b2ae40690ed7 ("netdev-offload-tc: Add recirculation support via tc chains")
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
---
 lib/netdev-offload-tc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-offload-tc.c b/lib/netdev-offload-tc.c
index 9e1c84d44..7453078d5 100644
--- a/lib/netdev-offload-tc.c
+++ b/lib/netdev-offload-tc.c
@@ -1365,10 +1365,10 @@ netdev_tc_flow_put(struct netdev *netdev, struct match *match,
     const struct flow_tnl *tnl = &match->flow.tunnel;
     const struct flow_tnl *tnl_mask = &mask->tunnel;
     struct tc_action *action;
+    bool recirc_act = false;
     uint32_t block_id = 0;
     struct nlattr *nla;
     struct tcf_id id;
-    bool recirc_act;
     uint32_t chain;
     size_t left;
     int prio = 0;
-- 
2.17.1



More information about the dev mailing list