]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb49e5cf0308f029f8b749ab17226ab1d867fc813
tree9b27b71c05d89db12c4f798ebc57d9470f5ff2b1
parentc22a3f6b84ddcb4892d55bbb3484ed5266e37edb
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