diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2006-05-23 13:34:59 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-05-23 13:34:59 -0400 |
commit | ec9c3f5d3b8c4dd7340800f02eed87bdf0233e3b (patch) | |
tree | 5397e9b952cf06246b8360bab0e27f91eb329ae4 /drivers/net/ixgb/ixgb.h | |
parent | c85fd6f0dedcec411438768bb5ebd133b1ae3347 (diff) |
ixgb: use DPRINTK and msglvl, and ethtool to control it
Use DPRINTK and msglvl, and ethtool to control it. Add proper names
to netdev structs and mappings.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
Diffstat (limited to 'drivers/net/ixgb/ixgb.h')
-rw-r--r-- | drivers/net/ixgb/ixgb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h index c83271b38621..a687f1210cb0 100644 --- a/drivers/net/ixgb/ixgb.h +++ b/drivers/net/ixgb/ixgb.h | |||
@@ -84,7 +84,12 @@ struct ixgb_adapter; | |||
84 | #define IXGB_DBG(args...) | 84 | #define IXGB_DBG(args...) |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | #define IXGB_ERR(args...) printk(KERN_ERR "ixgb: " args) | 87 | #define PFX "ixgb: " |
88 | #define DPRINTK(nlevel, klevel, fmt, args...) \ | ||
89 | (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \ | ||
90 | printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \ | ||
91 | __FUNCTION__ , ## args)) | ||
92 | |||
88 | 93 | ||
89 | /* TX/RX descriptor defines */ | 94 | /* TX/RX descriptor defines */ |
90 | #define DEFAULT_TXD 256 | 95 | #define DEFAULT_TXD 256 |
@@ -192,6 +197,7 @@ struct ixgb_adapter { | |||
192 | 197 | ||
193 | /* structs defined in ixgb_hw.h */ | 198 | /* structs defined in ixgb_hw.h */ |
194 | struct ixgb_hw hw; | 199 | struct ixgb_hw hw; |
200 | u16 msg_enable; | ||
195 | struct ixgb_hw_stats stats; | 201 | struct ixgb_hw_stats stats; |
196 | #ifdef CONFIG_PCI_MSI | 202 | #ifdef CONFIG_PCI_MSI |
197 | boolean_t have_msi; | 203 | boolean_t have_msi; |