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)
commit2413ea97157d6116b3abf432e36c2228f6428f02
tree93fe1355d077eb466fe01ce6a44d226072f6b3c4
parent9f648f7b712461f0aafbbc896a4e5df68dacafa9
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