diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2013-11-22 22:51:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-24 03:11:07 +0400 |
commit | 2c7a9dc1641664173211c4ebc5db510a08684c46 (patch) | |
tree | 4148dfa772f0288771e4a9b69e7ac60509c0db8f /drivers/net/ethernet/emulex/benet/be.h | |
parent | 09e83a9d449c1af533321f5bda62b6a59a4098c6 (diff) | |
download | linux-2c7a9dc1641664173211c4ebc5db510a08684c46.tar.xz |
be2net: Avoid programming permenant MAC by BE3-R VFs
On BE3-R, the PF programs the initial MAC address for its VFs. Doing it again
in VF probe, causes a FW error which although harmless generates
an unnecessary error log message.
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index f4825db5d179..5878df619b53 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -503,6 +503,7 @@ struct be_adapter { }; #define be_physfn(adapter) (!adapter->virtfn) +#define be_virtfn(adapter) (adapter->virtfn) #define sriov_enabled(adapter) (adapter->num_vfs > 0) #define sriov_want(adapter) (be_physfn(adapter) && \ (num_vfs || pci_num_vf(adapter->pdev))) |