]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: ethtool: support set_channels callback
authorSameeh Jubran <sameehj@amazon.com>
Sun, 6 Oct 2019 12:33:28 +0000 (15:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Oct 2019 13:30:03 +0000 (09:30 -0400)
commit1055570b129c142ccd93c890fcf614e465fb722d
tree93fe1355d077eb466fe01ce6a44d226072f6b3c4
parent065c37746638b87fabf369abdef5a5e5e9f7a0e5
net: ena: ethtool: support set_channels callback

Set channels callback enables the user to change the count of queues
used by the driver using ethtool. We decided to currently support only
equal number of rx and tx queues, this might change in the future.

Also rename dev_up to dev_was_up in ena_update_queue_count() to make
it clearer.

Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h