From 3cf835665a1f0090733bd71d645fe27cff5869b2 Mon Sep 17 00:00:00 2001 From: Wenzhuo Lu Date: Wed, 30 Mar 2016 10:46:11 +0800 Subject: [PATCH] ixgbe/base: fix VF multi-queue When starting testpmd with multiple queues on a ixgbe VF port, it failed with this printing, "nb_rxq(4) is greater than max_rx_queues(1)". The root cause is the VF doesn't get the right max rx queue number from PF and it uses the default value 1. VF max rx queue number is set by PF through mailbox messages. The message for this setting only supports version 1.1. As message version is updated to 1.2, VF cannot parse the rx queue number setting message correctly. This patch raise a specific base code update for this issue. Fixes: 72dec9e37a84 ("ixgbe: support multicast promiscuous mode on VF") Signed-off-by: Wenzhuo Lu --- drivers/net/ixgbe/base/ixgbe_vf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c index dbb5194987..40dc1c8c30 100644 --- a/drivers/net/ixgbe/base/ixgbe_vf.c +++ b/drivers/net/ixgbe/base/ixgbe_vf.c @@ -675,6 +675,7 @@ int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs, /* do nothing if API doesn't support ixgbevf_get_queues */ switch (hw->api_version) { case ixgbe_mbox_api_11: + case ixgbe_mbox_api_12: break; default: return 0; -- 2.20.1