libteam/ignore_ebusy_for_team_hwaddr_set.patch
2024-02-29 15:54:24 +08:00

14 lines
399 B
Diff

Index: libteam-1.18/libteam/libteam.c
===================================================================
--- libteam-1.18.orig/libteam/libteam.c
+++ libteam-1.18/libteam/libteam.c
@@ -1633,6 +1633,9 @@ int team_hwaddr_set(struct team_handle *
err = rtnl_link_change(th->nl_cli.sock, link, link, 0);
err = -nl2syserr(err);
+ if (err == -EBUSY)
+ err = 0;
+
nl_addr_put(nl_addr);
errout: