Skip to content

Commit

Permalink
netxen: Use the instance of net_device_stats from net_device.
Browse files Browse the repository at this point in the history
Since net_device has an instance of net_device_stats,
we can remove the instance of this from the private adapter structure.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Oct 8, 2009
1 parent 7274c20 commit 5a4d631
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/netxen/netxen_nic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,6 @@ struct netxen_adapter {

struct work_struct tx_timeout_task;

struct net_device_stats net_stats;

nx_nic_intr_coalesce_t coal;

unsigned long state;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ static void netxen_tx_timeout_task(struct work_struct *work)
struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev)
{
struct netxen_adapter *adapter = netdev_priv(netdev);
struct net_device_stats *stats = &adapter->net_stats;
struct net_device_stats *stats = &netdev->stats;

memset(stats, 0, sizeof(*stats));

Expand Down

0 comments on commit 5a4d631

Please sign in to comment.