Skip to content

Commit

Permalink
netdev-linux: do not touch LAG slaves if master is not attached to ovs.
Browse files Browse the repository at this point in the history
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: d22f892 ("netdev-linux: monitor and offload LAG slaves to TC")
CC: John Hurley <john.hurley@netronome.com>
Signed-off-by: Tao Liu <thomas.liu@ucloud.cn>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
Tao Liu authored and ovsrobot committed Mar 19, 2021
1 parent edcfd71 commit 73a8a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netdev-linux.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 73a8a9d

Please sign in to comment.