]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: propagate MAC address change to VF slave
authorstephen hemminger <stephen@networkplumber.org>
Thu, 10 Aug 2017 00:46:05 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 20:59:42 +0000 (13:59 -0700)
commit4c290fdd4caec24731964e95028c4db7c6320cde
tree679708a5f43f950d8823fedee5b06d63325cae51
parentb91ae3e77fa68e104335c475d53e93e87f5afffb
netvsc: propagate MAC address change to VF slave

If VF is slaved to synthetic device, then any change to netvsc
MAC address should be propagated to the slave device.

If slave device doesn't support MAC address change then it
should also be an error to attempt to change synthetic NIC MAC
address.

It also fixes the error unwind in the original code.
If give a bad address, the old code would change the device
MAC address anyway.

Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c