-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libteam]: Add patch to update orig_hwaddr unconditionally (#2425)
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/libteam/ifinfo.c b/libteam/ifinfo.c | ||
index 72155ae..44de4ca 100644 | ||
--- a/libteam/ifinfo.c | ||
+++ b/libteam/ifinfo.c | ||
@@ -105,15 +105,13 @@ static void update_hwaddr(struct team_ifinfo *ifinfo, struct rtnl_link *link) | ||
hwaddr_len = nl_addr_get_len(nl_addr); | ||
if (ifinfo->hwaddr_len != hwaddr_len) { | ||
ifinfo->hwaddr_len = hwaddr_len; | ||
- if (!ifinfo->master_ifindex) | ||
- ifinfo->orig_hwaddr_len = hwaddr_len; | ||
+ ifinfo->orig_hwaddr_len = hwaddr_len; | ||
set_changed(ifinfo, CHANGED_HWADDR_LEN); | ||
} | ||
hwaddr = nl_addr_get_binary_addr(nl_addr); | ||
if (memcmp(ifinfo->hwaddr, hwaddr, hwaddr_len)) { | ||
memcpy(ifinfo->hwaddr, hwaddr, hwaddr_len); | ||
- if (!ifinfo->master_ifindex) | ||
- memcpy(ifinfo->orig_hwaddr, hwaddr, hwaddr_len); | ||
+ memcpy(ifinfo->orig_hwaddr, hwaddr, hwaddr_len); | ||
set_changed(ifinfo, CHANGED_HWADDR); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters