From: Tomasz Duszynski Date: Thu, 15 Mar 2018 12:12:21 +0000 (+0100) Subject: net/mrvl: fix Rx descriptors number X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c3637258d8946ed3c490c358202baaaf673526ba;p=dpdk.git 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 --- 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;