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)
commit16ba3266006be10dc7ec25dd1442f74cef89cb95
tree679708a5f43f950d8823fedee5b06d63325cae51
parent5e20d55a23a76a876396ba1235bdf019e74d0c6f
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