i40e: fix VSI allocation for VMDq
authorHelin Zhang <helin.zhang@intel.com>
Thu, 12 Nov 2015 07:09:03 +0000 (15:09 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Nov 2015 11:39:08 +0000 (12:39 +0100)
commit50687c312a4510a00285af2bb686ce6d089644cd
tree62a2d05db62b375b4cf550c209fa0eb631783eaa
parent6b6a94ee17d246a0078cc83257f522d0a6db5409
i40e: fix VSI allocation for VMDq

It fixes the issue of trying to allocate more VSIs for VMDq than
hardware remaining. It adds a check of the hardware remaining
before allocating VSIs for VMDq.

Fixes: c80707a0fd9c ("i40e: fix VMDq pool limit")

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c