Searched hist:f1852d64 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_ethtool.c | f1852d64 Thu Sep 10 08:07:10 CDT 2020 Sameeh Jubran <sameehj@amazon.com> 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> f1852d64 Thu Sep 10 08:07:10 CDT 2020 Sameeh Jubran <sameehj@amazon.com> 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>
|