aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-08-25 00:03:03 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-25 17:15:27 -0400
commit8cf61f890ac4c2a15acb24658feba13c9c838b52 (patch)
tree35a476615af3563c56b7ca3022b44fb194010944 /drivers/net/qlcnic/qlcnic.h
parente9a47700cb35bc84d4954f762a193b150722612e (diff)
qlcnic: support port vlan id
On NIC Partition capable adapter, Administrator can configure to tag packet with particular vlan id. Packet will be tagged and strip with that vlan id. Also if 'Tagging' flag is disable, other packet will be drop. 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 508d531a55e5..d15de63ed0bb 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -175,7 +175,7 @@
175 ((_desc)->port_ctxid = ((_port) & 0xf) | (((_port) << 4) & 0xf0)) 175 ((_desc)->port_ctxid = ((_port) & 0xf) | (((_port) << 4) & 0xf0))
176 176
177#define qlcnic_set_tx_flags_opcode(_desc, _flags, _opcode) \ 177#define qlcnic_set_tx_flags_opcode(_desc, _flags, _opcode) \
178 ((_desc)->flags_opcode = \ 178 ((_desc)->flags_opcode |= \
179 cpu_to_le16(((_flags) & 0x7f) | (((_opcode) & 0x3f) << 7))) 179 cpu_to_le16(((_flags) & 0x7f) | (((_opcode) & 0x3f) << 7)))
180 180
181#define qlcnic_set_tx_frags_len(_desc, _frags, _len) \ 181#define qlcnic_set_tx_frags_len(_desc, _frags, _len) \
@@ -902,6 +902,7 @@ struct qlcnic_mac_req {
902#define QLCNIC_BRIDGE_ENABLED 0X10 902#define QLCNIC_BRIDGE_ENABLED 0X10
903#define QLCNIC_DIAG_ENABLED 0x20 903#define QLCNIC_DIAG_ENABLED 0x20
904#define QLCNIC_ESWITCH_ENABLED 0x40 904#define QLCNIC_ESWITCH_ENABLED 0x40
905#define QLCNIC_TAGGING_ENABLED 0x100
905#define QLCNIC_MACSPOOF 0x200 906#define QLCNIC_MACSPOOF 0x200
906#define QLCNIC_IS_MSI_FAMILY(adapter) \ 907#define QLCNIC_IS_MSI_FAMILY(adapter) \
907 ((adapter)->flags & (QLCNIC_MSI_ENABLED | QLCNIC_MSIX_ENABLED)) 908 ((adapter)->flags & (QLCNIC_MSI_ENABLED | QLCNIC_MSIX_ENABLED))
@@ -967,6 +968,7 @@ struct qlcnic_adapter {
967 u16 max_tx_ques; 968 u16 max_tx_ques;
968 u16 max_rx_ques; 969 u16 max_rx_ques;
969 u16 max_mtu; 970 u16 max_mtu;
971 u16 pvid;
970 972
971 u32 fw_hal_version; 973 u32 fw_hal_version;
972 u32 capabilities; 974 u32 capabilities;