]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Enable a VF to get its own MAC address
authorDaniel Pieczko <dpieczko@solarflare.com>
Wed, 20 May 2015 10:10:20 +0000 (11:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:43:53 +0000 (18:43 -0400)
commitf4fa8f9ae3a4eedbc0877ef4c11619f9f85b908b
treee30e86dcabb730c65fbb069cecff6c3bac37e0b5
parent9c06bd77e228e332980701b4580f17e516f51880
sfc: Enable a VF to get its own MAC address

A VF's MAC address is set by its parent PF and added to its vport.
To get this MAC address, the VF must use MC_CMD_ VPORT_GET_MAC_ADDRESSES.
In the current scheme, a VF's vport should only have one MAC address,
so warn if this is not the case.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/net_driver.h