net/i40e: fix compile error
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 20 Feb 2017 18:11:56 +0000 (13:11 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:50 +0000 (15:52 +0200)
commit0be2953129666dc510092ab7f240b21d06e03da7
treee2ef37c517da6a75ec1fe2d84239d7ac00594cd7
parent9514fa2d1adb3d18ce803c77c8df90c8e2d8bd11
net/i40e: fix compile error

Fix the compile error when RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC
is disabled.

Also fake_mbuf is required to be initialized and assigned to
additional sw_ring entries for vector PMD independent from
RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC config option.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c
drivers/net/i40e/i40e_rxtx.h