aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-07-26 16:07:45 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-27 14:15:31 -0400
commit028afe719855a157e32450c36b7a12e1f9e85abe (patch)
tree5aac51f5fd2def91942bf7b9b46040aeb7d4b503 /drivers/net/netxen/netxen_nic.h
parent9b08beba2d1bf7e4598deba2800a9ea5e5c3a282 (diff)
netxen: add vlan tx acceleration support
Enable vlan tx acceleration for NX3031 if firmware advertises capability. Signed-off-by: Amit Kumar Salecha <amit@netxen.com> Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index e7702f603346..d01cc092450e 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -304,6 +304,10 @@ struct netxen_ring_ctx {
304#define FLAGS_IPSEC_SA_ADD 0x04 304#define FLAGS_IPSEC_SA_ADD 0x04
305#define FLAGS_IPSEC_SA_DELETE 0x08 305#define FLAGS_IPSEC_SA_DELETE 0x08
306#define FLAGS_VLAN_TAGGED 0x10 306#define FLAGS_VLAN_TAGGED 0x10
307#define FLAGS_VLAN_OOB 0x40
308
309#define netxen_set_tx_vlan_tci(cmd_desc, v) \
310 (cmd_desc)->vlan_TCI = cpu_to_le16(v);
307 311
308#define netxen_set_cmd_desc_port(cmd_desc, var) \ 312#define netxen_set_cmd_desc_port(cmd_desc, var) \
309 ((cmd_desc)->port_ctxid |= ((var) & 0x0F)) 313 ((cmd_desc)->port_ctxid |= ((var) & 0x0F))
@@ -342,7 +346,9 @@ struct cmd_desc_type0 {
342 346
343 __le64 addr_buffer4; 347 __le64 addr_buffer4;
344 348
345 __le64 unused; 349 __le16 vlan_TCI;
350 __le16 reserved;
351 __le32 reserved2;
346 352
347} __attribute__ ((aligned(64))); 353} __attribute__ ((aligned(64)));
348 354
@@ -1111,6 +1117,9 @@ typedef struct {
1111 1117
1112#define NX_FW_CAPABILITY_LINK_NOTIFICATION (1 << 5) 1118#define NX_FW_CAPABILITY_LINK_NOTIFICATION (1 << 5)
1113#define NX_FW_CAPABILITY_SWITCHING (1 << 6) 1119#define NX_FW_CAPABILITY_SWITCHING (1 << 6)
1120#define NX_FW_CAPABILITY_PEXQ (1 << 7)
1121#define NX_FW_CAPABILITY_BDG (1 << 8)
1122#define NX_FW_CAPABILITY_FVLANTX (1 << 9)
1114 1123
1115/* module types */ 1124/* module types */
1116#define LINKEVENT_MODULE_NOT_PRESENT 1 1125#define LINKEVENT_MODULE_NOT_PRESENT 1