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: 0ddc9b815b
("net/mrvl: add net PMD skeleton")
Cc: stable@dpdk.org
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
This commit is contained in:
parent
6f324a91df
commit
c3637258d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user