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)
commitf1852d64ba0af0e6916e81f16349dbf75f5dd9b0
treef31c29cc930506e998de55d190fb0908f282f396
parente54846581891b8cf1c8c903a4feae65a5aa27ed5
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