提交 f5152c90 编写于 作者: D Dimitris Michailidis 提交者: David S. Miller

cxgb4: fix for new ndo_get_stats64 signature

The change to ndo_get_stats64 in "net: fix 64 bit counters on 32 bit arches"
missed cxgb4.  Fix it.
Signed-off-by: NDimitris Michailidis <dm@chelsio.com>
Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3e9e0b83
...@@ -2601,12 +2601,12 @@ static int cxgb_close(struct net_device *dev) ...@@ -2601,12 +2601,12 @@ static int cxgb_close(struct net_device *dev)
return t4_enable_vi(adapter, 0, pi->viid, false, false); return t4_enable_vi(adapter, 0, pi->viid, false, false);
} }
static struct rtnl_link_stats64 *cxgb_get_stats(struct net_device *dev) static struct rtnl_link_stats64 *cxgb_get_stats(struct net_device *dev,
struct rtnl_link_stats64 *ns)
{ {
struct port_stats stats; struct port_stats stats;
struct port_info *p = netdev_priv(dev); struct port_info *p = netdev_priv(dev);
struct adapter *adapter = p->adapter; struct adapter *adapter = p->adapter;
struct rtnl_link_stats64 *ns = &dev->stats64;
spin_lock(&adapter->stats_lock); spin_lock(&adapter->stats_lock);
t4_get_port_stats(adapter, p->tx_chan, &stats); t4_get_port_stats(adapter, p->tx_chan, &stats);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册