فهرست منبع

bnx2: use net_device_stats nowadays available in net_device

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ilpo Järvinen 16 سال پیش
والد
کامیت
d8e8034dcd
2فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 1
      drivers/net/bnx2.c
  2. 0 2
      drivers/net/bnx2.h

+ 1 - 1
drivers/net/bnx2.c

@@ -6155,7 +6155,7 @@ bnx2_get_stats(struct net_device *dev)
 {
 {
 	struct bnx2 *bp = netdev_priv(dev);
 	struct bnx2 *bp = netdev_priv(dev);
 	struct statistics_block *stats_blk = bp->stats_blk;
 	struct statistics_block *stats_blk = bp->stats_blk;
-	struct net_device_stats *net_stats = &bp->net_stats;
+	struct net_device_stats *net_stats = &dev->stats;
 
 
 	if (bp->stats_blk == NULL) {
 	if (bp->stats_blk == NULL) {
 		return net_stats;
 		return net_stats;

+ 0 - 2
drivers/net/bnx2.h

@@ -6872,8 +6872,6 @@ struct bnx2 {
 	int			pm_cap;
 	int			pm_cap;
 	int			pcix_cap;
 	int			pcix_cap;
 
 
-	struct net_device_stats net_stats;
-
 	struct flash_spec	*flash_info;
 	struct flash_spec	*flash_info;
 	u32			flash_size;
 	u32			flash_size;