net: ena: reimplement set/get_coalesce()
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:28 +0000 (14:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Sep 2019 20:06:02 +0000 (22:06 +0200)
commitb3db86dc4b82ffc63e33c78dafc09d5c78ac4fe4
tree9b27b71c05d89db12c4f798ebc57d9470f5ff2b1
parent282faf61a053be43910fcc42d86ecf16c0d30123
net: ena: reimplement set/get_coalesce()

1. Remove old adaptive interrupt moderation code from set/get_coalesce()
2. Add ena_update_rx_rings_intr_moderation() function for updating
   nonadaptive interrupt moderation intervals similarly to
   ena_update_tx_rings_intr_moderation().
3. Remove checks of multiple unsupported received interrupt coalescing
   parameters. This makes code cleaner and cancels the need to update
   it every time a new coalescing parameter is invented.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c