i40e: fix netdev_stat macro definition
The old xxx_NETDEV_STAT() macro was defined long before the newer rtnl_link_stats64 came into being, and just never got updated. Since we're using rtnl_link_stats64 in other parts of the driver, we should use it here as well. We've just been lucky that the field definitions are the same sizes. Change-ID: I19fc71619905700235dcdf0d3c8153aec81d36de Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
e7f2e4b94c
commit
fad177dc8b
|
@ -40,8 +40,9 @@ struct i40e_stats {
|
|||
.sizeof_stat = FIELD_SIZEOF(_type, _stat), \
|
||||
.stat_offset = offsetof(_type, _stat) \
|
||||
}
|
||||
|
||||
#define I40E_NETDEV_STAT(_net_stat) \
|
||||
I40E_STAT(struct net_device_stats, #_net_stat, _net_stat)
|
||||
I40E_STAT(struct rtnl_link_stats64, #_net_stat, _net_stat)
|
||||
#define I40E_PF_STAT(_name, _stat) \
|
||||
I40E_STAT(struct i40e_pf, _name, _stat)
|
||||
#define I40E_VSI_STAT(_name, _stat) \
|
||||
|
|
Loading…
Reference in New Issue