[ovs-dev] [PATCH v2 2/2] netdev-offload-tc: re-fetch block ID after probing
Aaron Conole
aconole at redhat.com
Fri May 15 20:36:19 UTC 2020
It's possible that block_id could changes after the probe for block
support. Therefore, fetch the block_id again after the probe.
Fixes: edc2055a2bf7 ("netdev-offload-tc: Flush rules on ingress block when init tc flow api")
Cc: Dmytro Linkin <dmitrolin at mellanox.com>
Co-authored-by: Marcelo Leitner <mleitner at redhat.com>
Acked-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Marcelo Leitner <mleitner at redhat.com>
Signed-off-by: Aaron Conole <aconole at redhat.com>
---
lib/netdev-offload-tc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/netdev-offload-tc.c b/lib/netdev-offload-tc.c
index 875ebef719..e188e63e56 100644
--- a/lib/netdev-offload-tc.c
+++ b/lib/netdev-offload-tc.c
@@ -1931,6 +1931,8 @@ netdev_tc_init_flow_api(struct netdev *netdev)
if (ovsthread_once_start(&block_once)) {
probe_tc_block_support(ifindex);
+ /* Need to re-fetch block id as it depends on feature availability. */
+ block_id = get_block_id_from_netdev(netdev);
ovsthread_once_done(&block_once);
}
--
2.25.1
More information about the dev
mailing list