libteam/ignore_ebusy_for_team_hwaddr_set.patch
Nirmoy Das 199c9dfa9b Accepting request 544370 from home:ndas:branches:network
- sync with SLES changes(bsc#1055708)
* Add check_if_psr_ops_were_initialized.patch:
** Fix teamd segfault when link_watch initialization callbacks fail
  (e.g. lw_psr_port_added() in case of activebackup runner) due to
  an attempt to change hwaddr on an enslaved, link up port device.
  Note: enslavement triggers initialization callbacks.
* Add ignore_ebusy_for_team_hwaddr_set.patch:
** Make PortAdd and PortRemove dbus methods work for all runners.
  Ignore attempts to change hwaddr of an already enslaved devices.
  (fate#318389,fate#317728,fate#316923)
- Add start_teamd_from_usr_sbin.patch:
* Modify service file to start teamd instance from /usr/sbin.

OBS-URL: https://build.opensuse.org/request/show/544370
OBS-URL: https://build.opensuse.org/package/show/network/libteam?expand=0&rev=9
2017-11-22 10:50:23 +00:00

15 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: