OpenCloudOS-Kernel/drivers/net/ethernet/ibm
Nick Child 10c2aba89c ibmveth: Ethtool set queue support
Implement channel management functions to allow dynamic addition and
removal of transmit queues. The `ethtool --show-channels` and
`ethtool --set-channels` commands can be used to get and set the
number of queues, respectively. Allow the ability to add as many
transmit queues as available processors but never allow more than the
hard maximum of 16. The number of receive queues is one and cannot be
modified.

Depending on whether the requested number of queues is larger or
smaller than the current value, either allocate or free long term
buffers. Since long term buffer construction and destruction can
occur in two different areas, from either channel set requests or
device open/close, define functions for performing this work. If
allocation of a new buffer fails, then attempt to revert back to the
previous number of queues.

Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-09-30 12:40:22 +01:00
..
ehea net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
emac net: ibm: emac: Switch to use dev_err_probe() helper 2022-09-21 13:50:03 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ibmveth.c ibmveth: Ethtool set queue support 2022-09-30 12:40:22 +01:00
ibmveth.h ibmveth: Implement multi queue on xmit 2022-09-30 12:40:22 +01:00
ibmvnic.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ibmvnic.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-04-28 13:02:01 -07:00