aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-04-01 15:01:33 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-03 17:19:15 -0400
commit65b5b420b5974d86ee030b0a15cd9e6f228071f4 (patch)
tree5ddf10e7f5a3ed54dd6fc75f90c41c4694ff6061 /drivers/net/qlcnic/qlcnic.h
parentaa5e18c04af8706251768e6aba83465e31de7810 (diff)
qlcnic: add driver debug support
Add debug print in driver, can be tuned by ethtool msg level callback. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 87cd1a7ef9ca..68687e24aae2 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -961,6 +961,7 @@ struct qlcnic_adapter {
961 u8 reset_ack_timeo; 961 u8 reset_ack_timeo;
962 u8 dev_init_timeo; 962 u8 dev_init_timeo;
963 u8 rsrd1; 963 u8 rsrd1;
964 u16 msg_enable;
964 965
965 u8 mac_addr[ETH_ALEN]; 966 u8 mac_addr[ETH_ALEN];
966 967
@@ -1135,4 +1136,11 @@ static inline u32 qlcnic_tx_avail(struct qlcnic_host_tx_ring *tx_ring)
1135 1136
1136extern const struct ethtool_ops qlcnic_ethtool_ops; 1137extern const struct ethtool_ops qlcnic_ethtool_ops;
1137 1138
1139#define QLCDB(adapter, lvl, _fmt, _args...) do { \
1140 if (NETIF_MSG_##lvl & adapter->msg_enable) \
1141 printk(KERN_INFO "%s: %s: " _fmt, \
1142 dev_name(&adapter->pdev->dev), \
1143 __func__, ##_args); \
1144 } while (0)
1145
1138#endif /* __QLCNIC_H_ */ 1146#endif /* __QLCNIC_H_ */