net/hinic: optimize mbuf allocation
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Fri, 1 Nov 2019 13:36:44 +0000 (21:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commitabd41e3d004746753d9198b3896bcb919f601167
tree6c23df84f50d49cdb12f081befd5f3e008d8d453
parent203911b1dc33db7b16e598c7ce36229652bc0d1a
net/hinic: optimize mbuf allocation

When port start, driver needs to alloc mbuf resource to fill Rx
queue bd section, replace rte_mbuf_raw_alloc function to
rte_pktmbuf_alloc_bulk with initialized mbuf structure to avoid
some structures being used without initialization.

Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_rx.c