File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ nfb_eth_dev_info(struct rte_eth_dev *dev,
375375 dev_info -> max_rx_pktlen = (uint32_t )-1 ;
376376 dev_info -> max_rx_queues = priv -> max_rx_queues ;
377377 dev_info -> max_tx_queues = priv -> max_tx_queues ;
378+ dev_info -> max_rx_mempools = priv -> max_rx_queues ;
378379 dev_info -> speed_capa = RTE_ETH_LINK_SPEED_FIXED ;
379380 dev_info -> rx_offload_capa =
380381 RTE_ETH_RX_OFFLOAD_TIMESTAMP ;
Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ nfb_eth_rx_queue_setup(struct rte_eth_dev *dev,
8282 int nfb_qid ;
8383 int ret ;
8484
85+ int nmp ;
86+ if (rx_conf -> rx_nmempool > 0 ) {
87+ nmp = rx_queue_id % rx_conf -> rx_nmempool ;
88+ mb_pool = rx_conf -> rx_mempools [nmp ];
89+ }
8590 rxq = rte_zmalloc_socket ("ndp rx queue" ,
8691 sizeof (struct ndp_rx_queue ),
8792 RTE_CACHE_LINE_SIZE , socket_id );
You can’t perform that action at this time.
0 commit comments