]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: add legacy method for changing a PF's MAC address
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 7 Jul 2015 10:37:19 +0000 (11:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:07:33 +0000 (16:07 -0700)
commitf96fac271ece0534837cc9e6b662055397c47d71
treed4170843ac675f17c9bd71818cef6b6339f20f49
parent3d9f79547db0be2cd9cf6572c233d235cfc68b6c
sfc: add legacy method for changing a PF's MAC address

Some versions of MCFW do not support the MC_CMD_VADAPTOR_SET_MAC
command, and ENOSYS will be returned.

If the PF created its own vport, the function's datapath must be
stopped and the vport can be reconfigured to reflect the new MAC
address.

If the MCFW created the vport for the PF (which is the case when
the nic_data->vport_mac is blank), nothing further needs to be
done as the vport is not under the control of the PF.

This only applies to PFs because the MCFW in question does not
support VFs.

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/ef10_sriov.c
drivers/net/ethernet/sfc/ef10_sriov.h