From: Wenzhuo Lu Date: Wed, 30 Mar 2016 02:46:11 +0000 (+0800) Subject: ixgbe/base: fix VF multi-queue X-Git-Tag: spdx-start~7146 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3cf835665a1f0090733bd71d645fe27cff5869b2;p=dpdk.git 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 --- 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;