aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
diff options
context:
space:
mode:
authorVasanthy Kolluri <vkolluri@cisco.com>2011-06-09 06:36:57 -0400
committerDavid S. Miller <davem@davemloft.net>2011-06-09 17:58:09 -0400
commite1fb77bfd062b8d38fb0e428ae0edcd2dc4ec07b (patch)
treeb037617d0549b53f2b84a2e4a0ab926762be5b1f /drivers/net/enic
parent8757446d8df4446fc7f5d24ad6d53e9f265cc021 (diff)
enic: Log device configuration in detail during driver load
Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: Danny Guo <dannguo@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David Wang <dwang2@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic')
-rw-r--r--drivers/net/enic/enic.h2
-rw-r--r--drivers/net/enic/enic_res.c23
-rw-r--r--drivers/net/enic/vnic_enet.h7
3 files changed, 26 insertions, 6 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index e0d2ad181bb8..23e21037410f 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -32,7 +32,7 @@
32 32
33#define DRV_NAME "enic" 33#define DRV_NAME "enic"
34#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver" 34#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
35#define DRV_VERSION "2.1.1.16" 35#define DRV_VERSION "2.1.1.17"
36#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc" 36#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"
37 37
38#define ENIC_BARS_MAX 6 38#define ENIC_BARS_MAX 6
diff --git a/drivers/net/enic/enic_res.c b/drivers/net/enic/enic_res.c
index 6e5c6356e7df..34f42072b60c 100644
--- a/drivers/net/enic/enic_res.c
+++ b/drivers/net/enic/enic_res.c
@@ -97,11 +97,24 @@ int enic_get_vnic_config(struct enic *enic)
97 dev_info(enic_get_dev(enic), 97 dev_info(enic_get_dev(enic),
98 "vNIC MAC addr %pM wq/rq %d/%d mtu %d\n", 98 "vNIC MAC addr %pM wq/rq %d/%d mtu %d\n",
99 enic->mac_addr, c->wq_desc_count, c->rq_desc_count, c->mtu); 99 enic->mac_addr, c->wq_desc_count, c->rq_desc_count, c->mtu);
100 dev_info(enic_get_dev(enic), "vNIC csum tx/rx %d/%d " 100
101 "tso %d intr timer %d usec rss %d\n", 101 dev_info(enic_get_dev(enic), "vNIC csum tx/rx %s/%s "
102 ENIC_SETTING(enic, TXCSUM), ENIC_SETTING(enic, RXCSUM), 102 "tso/lro %s/%s rss %s intr mode %s type %s timer %d usec "
103 ENIC_SETTING(enic, TSO), 103 "loopback tag 0x%04x\n",
104 c->intr_timer_usec, ENIC_SETTING(enic, RSS)); 104 ENIC_SETTING(enic, TXCSUM) ? "yes" : "no",
105 ENIC_SETTING(enic, RXCSUM) ? "yes" : "no",
106 ENIC_SETTING(enic, TSO) ? "yes" : "no",
107 ENIC_SETTING(enic, LRO) ? "yes" : "no",
108 ENIC_SETTING(enic, RSS) ? "yes" : "no",
109 c->intr_mode == VENET_INTR_MODE_INTX ? "INTx" :
110 c->intr_mode == VENET_INTR_MODE_MSI ? "MSI" :
111 c->intr_mode == VENET_INTR_MODE_ANY ? "any" :
112 "unknown",
113 c->intr_timer_type == VENET_INTR_TYPE_MIN ? "min" :
114 c->intr_timer_type == VENET_INTR_TYPE_IDLE ? "idle" :
115 "unknown",
116 c->intr_timer_usec,
117 c->loop_tag);
105 118
106 return 0; 119 return 0;
107} 120}
diff --git a/drivers/net/enic/vnic_enet.h b/drivers/net/enic/vnic_enet.h
index e8740e3704e4..061ad8780796 100644
--- a/drivers/net/enic/vnic_enet.h
+++ b/drivers/net/enic/vnic_enet.h
@@ -51,4 +51,11 @@ struct vnic_enet_config {
51#define VENETF_RSSHASH_TCPIPV6_EX 0x400 /* Hash on TCP + IPv6 ext. fields */ 51#define VENETF_RSSHASH_TCPIPV6_EX 0x400 /* Hash on TCP + IPv6 ext. fields */
52#define VENETF_LOOP 0x800 /* Loopback enabled */ 52#define VENETF_LOOP 0x800 /* Loopback enabled */
53 53
54#define VENET_INTR_TYPE_MIN 0 /* Timer specs min interrupt spacing */
55#define VENET_INTR_TYPE_IDLE 1 /* Timer specs idle time before irq */
56
57#define VENET_INTR_MODE_ANY 0 /* Try MSI-X, then MSI, then INTx */
58#define VENET_INTR_MODE_MSI 1 /* Try MSI then INTx */
59#define VENET_INTR_MODE_INTX 2 /* Try INTx only */
60
54#endif /* _VNIC_ENIC_H_ */ 61#endif /* _VNIC_ENIC_H_ */