]> git.baikalelectronics.ru Git - kernel.git/commit
vmxnet3: fix minimum vectors alloc issue
authorRonak Doshi <doshir@vmware.com>
Tue, 7 Dec 2021 08:17:37 +0000 (00:17 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Dec 2021 01:56:39 +0000 (17:56 -0800)
commit0ec02c03c041f80091784d3193c697bebf32ad7b
tree45c418477c03cbbf70d9efe280884c76d44b80e9
parent005e94776763ba1ee72587be0d5b0d4a6ad90ff1
vmxnet3: fix minimum vectors alloc issue

'Commit ac2f0b575880 ("vmxnet3: add support for 32 Tx/Rx queues")'
added support for 32Tx/Rx queues. Within that patch, value of
VMXNET3_LINUX_MIN_MSIX_VECT was updated.

However, there is a case (numvcpus = 2) which actually requires 3
intrs which matches VMXNET3_LINUX_MIN_MSIX_VECT which then is
treated as failure by stack to allocate more vectors. This patch
fixes this issue.

Fixes: ac2f0b575880 ("vmxnet3: add support for 32 Tx/Rx queues")
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Acked-by: Guolin Yang <gyang@vmware.com>
Link: https://lore.kernel.org/r/20211207081737.14000-1-doshir@vmware.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vmxnet3/vmxnet3_drv.c