• Arthur Kiyanovski's avatar
    net: ena: Change ENI stats support check to use capabilities field · 394c48e0
    Arthur Kiyanovski authored
    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: default avatarShay Agroskin <shayagr@amazon.com>
    Signed-off-by: default avatarArthur Kiyanovski <akiyano@amazon.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    394c48e0
ena_ethtool.c 24 KB