diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-07-10 02:33:35 +0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-10 20:22:28 +0400 |
commit | 3cf267539f1f133eb6ba63d074da18cb58cdf89a (patch) | |
tree | c35a52a717702fdade349c1af0d7013bb7c51115 /drivers/net/sky2.h | |
parent | 55d7b4e6ed6ad3ec5e5e30b3b4515a0a6a53e344 (diff) | |
download | linux-3cf267539f1f133eb6ba63d074da18cb58cdf89a.tar.xz |
sky2: debug interface
Add an optional debug interface for displaying state of transmit/receive
rings. Creates a file debugfs/sky2/ethX for each device that is up.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index 8df4643493d1..dce4d276d443 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h @@ -1998,6 +1998,7 @@ struct sky2_port { struct sky2_tx_le *tx_le; u16 tx_cons; /* next le to check */ u16 tx_prod; /* next le to use */ + u16 tx_next; /* debug only */ u32 tx_addr64; u16 tx_pending; u16 tx_last_mss; @@ -2028,6 +2029,9 @@ struct sky2_port { enum flow_control flow_mode; enum flow_control flow_status; +#ifdef CONFIG_SKY2_DEBUG + struct dentry *debugfs; +#endif struct net_device_stats net_stats; }; |