diff options
author | Kalesh Purayil <kalesh.purayil@avagotech.com> | 2015-07-10 12:32:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-11 09:24:29 +0300 |
commit | ff9ed19d263d9678394b6ac079abd68efb3c55c0 (patch) | |
tree | 87ce90a203f8570318618cf4701119b5ba05d669 /drivers/net/ethernet/emulex/benet/be_cmds.h | |
parent | 145155e786ccee898f6ed665f6dd3bce7c14830f (diff) | |
download | linux-ff9ed19d263d9678394b6ac079abd68efb3c55c0.tar.xz |
be2net: query FW to check if EVB is enabled
The current code assumes that bridge functionality (EVB) in the adapter
is enabled only when SR-IOV is enabled. This is not always true.
This patch uses the GET_HSW_CONFIG FW cmd to query this from the FW.
Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.h b/drivers/net/ethernet/emulex/benet/be_cmds.h index 2716e6f30d9a..f0a92b7e4e7d 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.h +++ b/drivers/net/ethernet/emulex/benet/be_cmds.h @@ -1758,6 +1758,7 @@ struct be_cmd_req_set_mac_list { /*********************** HSW Config ***********************/ #define PORT_FWD_TYPE_VEPA 0x3 #define PORT_FWD_TYPE_VEB 0x2 +#define PORT_FWD_TYPE_PASSTHRU 0x1 #define ENABLE_MAC_SPOOFCHK 0x2 #define DISABLE_MAC_SPOOFCHK 0x3 |