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)
commit7a186f4703de6f4b7feb5d09735b096145b8918c
treed4170843ac675f17c9bd71818cef6b6339f20f49
parent9e9f665a18008999e749bd41394efcbf5c37a726
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
This page took 0.031221 seconds and 5 git commands to generate.