43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From 460c87546e31511b098a2af3392c67ba7d33c675 Mon Sep 17 00:00:00 2001
|
|
From: Honggang Li <honli@redhat.com>
|
|
Date: Tue, 19 Jan 2021 18:07:00 +0800
|
|
Subject: [PATCH] utils: skip team interface when check bonding
|
|
|
|
Both team and bonding Master interface has IFF_MASTER flag bit set.
|
|
|
|
However, linux sys files, such as BONDING_MODE_PARAM_FILE, are used
|
|
to check bonding interface. The linux 'team' kernel module does not
|
|
create those files as 'bonding' module.
|
|
|
|
In other words, 'bonding' interface verify does not work for 'team'
|
|
interface, so skip 'team' interface when check 'bonding'.
|
|
|
|
Otherwise, we will have significant performance issues for UDP traffic
|
|
over 'team' interface.
|
|
|
|
Fixes: ee0a1b983a6f ("issue: 2233904 Check bonding device using netlink")
|
|
|
|
Signed-off-by: Honggang Li <honli@redhat.com>
|
|
---
|
|
src/vma/util/utils.cpp | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/src/vma/util/utils.cpp b/src/vma/util/utils.cpp
|
|
index 5c0fe3e960a3..d795d259e370 100644
|
|
--- a/src/vma/util/utils.cpp
|
|
+++ b/src/vma/util/utils.cpp
|
|
@@ -822,9 +822,7 @@ bool check_bond_device_exist(const char* ifname)
|
|
goto out;
|
|
}
|
|
link_type = rtnl_link_get_type(link);
|
|
- if (link_type &&
|
|
- (strcmp(link_type, "bond") != 0) &&
|
|
- (strcmp(link_type, "team") != 0)) {
|
|
+ if (link_type && (strcmp(link_type, "bond") != 0)) {
|
|
link_type = NULL;
|
|
}
|
|
out:
|
|
--
|
|
2.25.4
|
|
|