]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: ena: fix retrieval of nonadaptive interrupt moderation intervals
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:35 +0000 (14:31 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 28 Nov 2019 16:48:45 +0000 (17:48 +0100)
commit7a2424b72aada71e3d23cc97dcb0476a723815b8
tree6bbc8dc66e2089d362ab1c168ef86c25b34609cc
parentb060eeed189784d4bc67aab71291ba1b29e07fdb
net: ena: fix retrieval of nonadaptive interrupt moderation intervals

BugLink: https://bugs.launchpad.net/bugs/1853180
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>
(cherry picked from commit 0eda847953d8dfb4b713ea62420f66157e230e13)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khaled Elmously <khalid.elmously@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/amazon/ena/ena_ethtool.c