Searched hist:"0 eda8479" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_ethtool.c | 0eda8479 Mon Sep 16 06:31:35 CDT 2019 Arthur Kiyanovski <akiyano@amazon.com> net: ena: fix retrieval of nonadaptive interrupt moderation intervals
Nonadaptive interrupt moderation intervals are assigned the value set by the user in ethtool -C divided by ena_dev->intr_delay_resolution.
Therefore when the user tries to get the nonadaptive interrupt moderation intervals with ethtool -c the code needs to multiply the saved value by ena_dev->intr_delay_resolution.
The current code erroneously divides instead of multiplying in ethtool -c. This patch fixes this.
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net> 0eda8479 Mon Sep 16 06:31:35 CDT 2019 Arthur Kiyanovski <akiyano@amazon.com> net: ena: fix retrieval of nonadaptive interrupt moderation intervals Nonadaptive interrupt moderation intervals are assigned the value set by the user in ethtool -C divided by ena_dev->intr_delay_resolution. Therefore when the user tries to get the nonadaptive interrupt moderation intervals with ethtool -c the code needs to multiply the saved value by ena_dev->intr_delay_resolution. The current code erroneously divides instead of multiplying in ethtool -c. This patch fixes this. Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|