diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-08-31 13:17:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-01 13:41:56 -0400 |
commit | 7373373d100e5aebe751af0b2609a9a01dad5ac1 (patch) | |
tree | 3816ae48d6f3f33beeb20f2c66b2b4ab333dc1fa /drivers/net/qlcnic/qlcnic.h | |
parent | dcb50afff747d15fc2ffff762c08c325e4c229e5 (diff) |
qlcnic: fix mac override capability
o Rename mac_learning to mac_override
o Added check in set_mac to return error if mac override is disabled.
o Disabling mac_override only supported for Non priviledged functions.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 220370fac726..cd1a2e6f59d2 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -905,6 +905,7 @@ struct qlcnic_mac_req { | |||
905 | #define QLCNIC_ADAPTER_INITIALIZED 0x80 | 905 | #define QLCNIC_ADAPTER_INITIALIZED 0x80 |
906 | #define QLCNIC_TAGGING_ENABLED 0x100 | 906 | #define QLCNIC_TAGGING_ENABLED 0x100 |
907 | #define QLCNIC_MACSPOOF 0x200 | 907 | #define QLCNIC_MACSPOOF 0x200 |
908 | #define QLCNIC_MAC_OVERRIDE_DISABLED 0x400 | ||
908 | #define QLCNIC_IS_MSI_FAMILY(adapter) \ | 909 | #define QLCNIC_IS_MSI_FAMILY(adapter) \ |
909 | ((adapter)->flags & (QLCNIC_MSI_ENABLED | QLCNIC_MSIX_ENABLED)) | 910 | ((adapter)->flags & (QLCNIC_MSI_ENABLED | QLCNIC_MSIX_ENABLED)) |
910 | 911 | ||
@@ -1060,7 +1061,7 @@ struct qlcnic_npar_info { | |||
1060 | u8 enable_pm; | 1061 | u8 enable_pm; |
1061 | u8 dest_npar; | 1062 | u8 dest_npar; |
1062 | u8 discard_tagged; | 1063 | u8 discard_tagged; |
1063 | u8 mac_learning; | 1064 | u8 mac_override; |
1064 | u8 mac_anti_spoof; | 1065 | u8 mac_anti_spoof; |
1065 | u8 promisc_mode; | 1066 | u8 promisc_mode; |
1066 | u8 offload_flags; | 1067 | u8 offload_flags; |
@@ -1134,7 +1135,7 @@ struct qlcnic_esw_func_cfg { | |||
1134 | u8 host_vlan_tag; | 1135 | u8 host_vlan_tag; |
1135 | u8 promisc_mode; | 1136 | u8 promisc_mode; |
1136 | u8 discard_tagged; | 1137 | u8 discard_tagged; |
1137 | u8 mac_learning; | 1138 | u8 mac_override; |
1138 | u8 mac_anti_spoof; | 1139 | u8 mac_anti_spoof; |
1139 | u8 offload_flags; | 1140 | u8 offload_flags; |
1140 | u8 reserved[5]; | 1141 | u8 reserved[5]; |