Bond master netdev may be created without a classification type, due
to routing or tunneling code.
If bond master is not attached to ovs, the slaves shoud not be updated.
Fixes: d22f8927c3c9 ("netdev-linux: monitor and offload LAG slaves to TC")
CC: John Hurley <[email protected]>
Signed-off-by: Tao Liu <[email protected]>
---
lib/netdev-linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 15b25084b..b3fcee403 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -680,7 +680,7 @@ netdev_linux_update_lag(struct rtnetlink_change *change)
if (is_netdev_linux_class(master_netdev->netdev_class)) {
block_id = netdev_get_block_id(master_netdev);
- if (!block_id) {
+ if (!block_id || master_netdev->auto_classified) {
netdev_close(master_netdev);
return;
}
--
2.23.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev