net/i40e: fix setup when bulk is disabled
authorBeilei Xing <beilei.xing@intel.com>
Thu, 20 Apr 2017 08:51:36 +0000 (16:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:17 +0000 (14:46 +0200)
commitc00f307f850a888f887688e88cb13be7e6964bd7
tree49a0c86f64d4c69fca2b35c1819ee642f35d025e
parentedd69f7c21dfdfd9edf3bc173c18de20e50e1c1d
net/i40e: fix setup when bulk is disabled

Testpmd failed to start when CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC
is disabled, the root cause is the length of sw_ring and queue are
incorrect with the above configuration.

Fixes: 0be295312966 ("net/i40e: fix compile error")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c