]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Wait for device response when changing MAC
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Mon, 29 Jan 2018 19:45:05 +0000 (13:45 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 23:03:24 +0000 (18:03 -0500)
commit6b81b46d5db9c7eaa71ad6c66e87b0318d0499bf
treef02d6f9194a193821a6c72ad06617af505b93d63
parentee68380b66ae7a6460d9cd7f6b98ab8c3f822780
ibmvnic: Wait for device response when changing MAC

Wait for a response from the VNIC server before exiting after setting
the MAC address. The resolves an issue with bonding a VNIC client in
ALB or TLB modes. The bonding driver was changing the MAC address more
rapidly than the device could respond, causing the following errors.

"bond0: the hw address of slave eth2 is in use by the bond;
couldn't find a slave with a free hw address to give it
(this should not have happened)"

If the function waits until the change is finalized, these errors are
avoided.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c