diff options
author | Arthur Kiyanovski <akiyano@amazon.com> | 2022-01-07 20:23:39 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-07 19:25:50 -0800 |
commit | 394c48e08bbcbf4c235cd667adb8a826a49d3fd4 (patch) | |
tree | 6cb0f7723eb486b1b2f33fc78e39c1d0a680bf23 /drivers/net/ethernet/amazon/ena/ena_netdev.h | |
parent | net: ena: Add capabilities field with support for ENI stats capability (diff) | |
download | wireguard-linux-394c48e08bbcbf4c235cd667adb8a826a49d3fd4.tar.xz wireguard-linux-394c48e08bbcbf4c235cd667adb8a826a49d3fd4.zip |
net: ena: Change ENI stats support check to use capabilities field
Use the capabilities field to query the device for ENI stats
support.
This replaces the previous method that tried to get the ENI stats
during ena_probe() and used the success or failure as an indication
for support by the device.
Remove eni_stats_supported field from struct ena_adapter. This field
was used for the previous method of queriying for ENI stats support.
Change the severity level of the print in case of
ena_com_get_eni_stats() failure from info to error.
With the previous method of querying form ENI stats support, failure
to get ENI stats was normal for devices that don't support it.
With the use of the capabilities field such a failure is unexpected,
as it is called only if the device reported that it supports ENI
stats.
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_netdev.h')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_netdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.h b/drivers/net/ethernet/amazon/ena/ena_netdev.h index 9391c7101fba..f70f1242e5b5 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.h +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.h @@ -379,7 +379,6 @@ struct ena_adapter { struct u64_stats_sync syncp; struct ena_stats_dev dev_stats; struct ena_admin_eni_stats eni_stats; - bool eni_stats_supported; /* last queue index that was checked for uncompleted tx packets */ u32 last_monitored_tx_qid; |