From c3637258d8946ed3c490c358202baaaf673526ba Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Thu, 15 Mar 2018 13:12:21 +0100 Subject: [PATCH] net/mrvl: fix Rx descriptors number Since filling hardware buffer pool (bpool) is Rx related constant describing maximum number of rx descriptors instead of maximum number of Tx descriptors should be used. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Marcin Wojtas Signed-off-by: Tomasz Duszynski --- drivers/net/mrvl/mrvl_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index 61c1223e19..c0483b9123 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -1462,8 +1462,8 @@ mrvl_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) static int mrvl_fill_bpool(struct mrvl_rxq *rxq, int num) { - struct buff_release_entry entries[MRVL_PP2_TXD_MAX]; - struct rte_mbuf *mbufs[MRVL_PP2_TXD_MAX]; + struct buff_release_entry entries[MRVL_PP2_RXD_MAX]; + struct rte_mbuf *mbufs[MRVL_PP2_RXD_MAX]; int i, ret; unsigned int core_id; struct pp2_hif *hif; -- 2.20.1