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)
commitf71ef02f1a4a3c49962fa341ad8de19071f0f9bf
tree45c418477c03cbbf70d9efe280884c76d44b80e9
parente195e9b5dee6459d8c8e6a314cc71a644a0537fd
vmxnet3: fix minimum vectors alloc issue

'Commit 39f9895a00f4 ("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: 39f9895a00f4 ("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