提交 5a4d6311 编写于 作者: A Ajit Khaparde 提交者: David S. Miller

netxen: Use the instance of net_device_stats from net_device.

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: NAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7274c20f
......@@ -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;
......
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册