]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: ethtool: convert stat_offset to 64 bit resolution
authorSameeh Jubran <sameehj@amazon.com>
Thu, 10 Sep 2020 13:07:10 +0000 (13:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:12:27 +0000 (15:12 -0700)
commit46c165e9c72468a22c34e3d06dd64a7acea883fb
treef31c29cc930506e998de55d190fb0908f282f396
parent937b39d085ddbd49408aad712ebc7ca2108a993f
net: ena: ethtool: convert stat_offset to 64 bit resolution

The type of all stat fields is u64, therefore when iterating over stat
fields in a stats struct, it makes sense to use an offset in 64 bit
resolution. Doing so allows us to drop some of the casting that is
currently used when referencing stats.

Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c