diff options
author | Scott Feldman <scofeldm@cisco.com> | 2009-12-23 08:27:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-24 00:03:42 -0500 |
commit | d87fd25d5ac4cd044e21b749a8f6cac90f093c71 (patch) | |
tree | 20d1f1db5063218b6733171b4ec48c66bd3a469d /drivers/net | |
parent | 7c8445991172cc17eaca9f7de0a300c02caaa49d (diff) |
enic: whitespace cleanup; #define cleanup; more verbose err msg
Some misc changes to cleanup whitespace issues and fix/remove some #define
HW defintions.
1) fix some whitespace issues
2) more verbose err msg when resources aren't available to configure vnic
3) remove unused #define
4) fix RSS #define rss hash types
Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/enic/enic_main.c | 5 | ||||
-rw-r--r-- | drivers/net/enic/vnic_dev.c | 1 | ||||
-rw-r--r-- | drivers/net/enic/vnic_nic.h | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index e56f41672b37..d87935ad1130 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -731,7 +731,7 @@ static inline void enic_queue_wq_skb(struct enic *enic, | |||
731 | 731 | ||
732 | /* netif_tx_lock held, process context with BHs disabled, or BH */ | 732 | /* netif_tx_lock held, process context with BHs disabled, or BH */ |
733 | static netdev_tx_t enic_hard_start_xmit(struct sk_buff *skb, | 733 | static netdev_tx_t enic_hard_start_xmit(struct sk_buff *skb, |
734 | struct net_device *netdev) | 734 | struct net_device *netdev) |
735 | { | 735 | { |
736 | struct enic *enic = netdev_priv(netdev); | 736 | struct enic *enic = netdev_priv(netdev); |
737 | struct vnic_wq *wq = &enic->wq[0]; | 737 | struct vnic_wq *wq = &enic->wq[0]; |
@@ -1824,7 +1824,8 @@ int enic_dev_init(struct enic *enic) | |||
1824 | err = enic_set_intr_mode(enic); | 1824 | err = enic_set_intr_mode(enic); |
1825 | if (err) { | 1825 | if (err) { |
1826 | printk(KERN_ERR PFX | 1826 | printk(KERN_ERR PFX |
1827 | "Failed to set intr mode, aborting.\n"); | 1827 | "Failed to set intr mode based on resource " |
1828 | "counts and system capabilities, aborting.\n"); | ||
1828 | return err; | 1829 | return err; |
1829 | } | 1830 | } |
1830 | 1831 | ||
diff --git a/drivers/net/enic/vnic_dev.c b/drivers/net/enic/vnic_dev.c index 29a48e8b59d3..69b9b70c7da0 100644 --- a/drivers/net/enic/vnic_dev.c +++ b/drivers/net/enic/vnic_dev.c | |||
@@ -36,7 +36,6 @@ struct vnic_res { | |||
36 | }; | 36 | }; |
37 | 37 | ||
38 | #define VNIC_DEV_CAP_INIT 0x0001 | 38 | #define VNIC_DEV_CAP_INIT 0x0001 |
39 | #define VNIC_DEV_CAP_PERBI 0x0002 | ||
40 | 39 | ||
41 | struct vnic_dev { | 40 | struct vnic_dev { |
42 | void *priv; | 41 | void *priv; |
diff --git a/drivers/net/enic/vnic_nic.h b/drivers/net/enic/vnic_nic.h index eeaf329945d8..cf80ab46d582 100644 --- a/drivers/net/enic/vnic_nic.h +++ b/drivers/net/enic/vnic_nic.h | |||
@@ -41,12 +41,12 @@ | |||
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) | 44 | #define NIC_CFG_RSS_HASH_TYPE_IPV4 (1 << 1) |
45 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV4 (1 << 1) | 45 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV4 (1 << 2) |
46 | #define NIC_CFG_RSS_HASH_TYPE_IPV6 (1 << 2) | 46 | #define NIC_CFG_RSS_HASH_TYPE_IPV6 (1 << 3) |
47 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6 (1 << 3) | 47 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6 (1 << 4) |
48 | #define NIC_CFG_RSS_HASH_TYPE_IPV6_EX (1 << 4) | 48 | #define NIC_CFG_RSS_HASH_TYPE_IPV6_EX (1 << 5) |
49 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX (1 << 5) | 49 | #define NIC_CFG_RSS_HASH_TYPE_TCP_IPV6_EX (1 << 6) |
50 | 50 | ||
51 | static inline void vnic_set_nic_cfg(u32 *nic_cfg, | 51 | static inline void vnic_set_nic_cfg(u32 *nic_cfg, |
52 | u8 rss_default_cpu, u8 rss_hash_type, | 52 | u8 rss_default_cpu, u8 rss_hash_type, |