aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb_ethtool.c
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2006-05-23 13:34:59 -0400
committerAuke Kok <juke-jan.h.kok@intel.com>2006-05-23 13:34:59 -0400
commitec9c3f5d3b8c4dd7340800f02eed87bdf0233e3b (patch)
tree5397e9b952cf06246b8360bab0e27f91eb329ae4 /drivers/net/ixgb/ixgb_ethtool.c
parentc85fd6f0dedcec411438768bb5ebd133b1ae3347 (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_ethtool.c')
-rw-r--r--drivers/net/ixgb/ixgb_ethtool.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c
index f6baf2866ca9..560b4b6c79d0 100644
--- a/drivers/net/ixgb/ixgb_ethtool.c
+++ b/drivers/net/ixgb/ixgb_ethtool.c
@@ -250,6 +250,19 @@ ixgb_set_tso(struct net_device *netdev, uint32_t data)
250} 250}
251#endif /* NETIF_F_TSO */ 251#endif /* NETIF_F_TSO */
252 252
253static uint32_t
254ixgb_get_msglevel(struct net_device *netdev)
255{
256 struct ixgb_adapter *adapter = netdev->priv;
257 return adapter->msg_enable;
258}
259
260static void
261ixgb_set_msglevel(struct net_device *netdev, uint32_t data)
262{
263 struct ixgb_adapter *adapter = netdev->priv;
264 adapter->msg_enable = data;
265}
253#define IXGB_GET_STAT(_A_, _R_) _A_->stats._R_ 266#define IXGB_GET_STAT(_A_, _R_) _A_->stats._R_
254 267
255static int 268static int
@@ -709,6 +722,8 @@ static struct ethtool_ops ixgb_ethtool_ops = {
709 .set_tx_csum = ixgb_set_tx_csum, 722 .set_tx_csum = ixgb_set_tx_csum,
710 .get_sg = ethtool_op_get_sg, 723 .get_sg = ethtool_op_get_sg,
711 .set_sg = ethtool_op_set_sg, 724 .set_sg = ethtool_op_set_sg,
725 .get_msglevel = ixgb_get_msglevel,
726 .set_msglevel = ixgb_set_msglevel,
712#ifdef NETIF_F_TSO 727#ifdef NETIF_F_TSO
713 .get_tso = ethtool_op_get_tso, 728 .get_tso = ethtool_op_get_tso,
714 .set_tso = ixgb_set_tso, 729 .set_tso = ixgb_set_tso,