diff options
author | Scott Feldman <scofeldm@cisco.com> | 2009-09-03 13:02:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-03 23:19:19 -0400 |
commit | 6ba9cdc09678d6925c205ef0b0bd374e31589ecf (patch) | |
tree | cff6128e997b6945d77ad47dab3a23bc8de8a56a /drivers/net/enic/vnic_nic.h | |
parent | 350991e12ac1ac407850169a0d65f522a7fd029e (diff) |
enic: provision for multiple Rx/Tx queues; prepare for RSS support
Provision for multiple Rx/Tx queues. Max of 8 WQs and 8 RQs. Max for
completion queue is 8+8=16 and max for interrupt resources is 8+8+2.
Add driver/firmware interface for setting up RSS secret key and indirection
table.
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_nic.h')
-rw-r--r-- | drivers/net/enic/vnic_nic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/enic/vnic_nic.h b/drivers/net/enic/vnic_nic.h index dadf26fae69a..eeaf329945d8 100644 --- a/drivers/net/enic/vnic_nic.h +++ b/drivers/net/enic/vnic_nic.h | |||
@@ -41,6 +41,13 @@ | |||
41 | #define NIC_CFG_IG_VLAN_STRIP_EN_MASK_FIELD 1UL | 41 | #define NIC_CFG_IG_VLAN_STRIP_EN_MASK_FIELD 1UL |
42 | #define NIC_CFG_IG_VLAN_STRIP_EN_SHIFT 24 | 42 | #define NIC_CFG_IG_VLAN_STRIP_EN_SHIFT 24 |
43 | 43 | ||
44 | #define NIC_CFG_RSS_HASH_TYPE_IPV4 (1 << 0) | ||
45 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV4 (1 << 1) | ||
46 | #define NIC_CFG_RSS_HASH_TYPE_IPV6 (1 << 2) | ||
47 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6 (1 << 3) | ||
48 | #define NIC_CFG_RSS_HASH_TYPE_IPV6_EX (1 << 4) | ||
49 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX (1 << 5) | ||
50 | |||
44 | static inline void vnic_set_nic_cfg(u32 *nic_cfg, | 51 | static inline void vnic_set_nic_cfg(u32 *nic_cfg, |
45 | u8 rss_default_cpu, u8 rss_hash_type, | 52 | u8 rss_default_cpu, u8 rss_hash_type, |
46 | u8 rss_hash_bits, u8 rss_base_cpu, | 53 | u8 rss_hash_bits, u8 rss_base_cpu, |