[dpdk-dev] [PATCH 0/3] add RX buffer size for rte_eth_rxq_info

Chengchang Tang tangchengchang at huawei.com
Wed Aug 26 03:57:11 CEST 2020


In common practice, PMD configure the RX buffer size which indicate the
buffer length could be used for HW in receiving packets according to the
data room size of the object in mempool. But in fact, the final value is
related to the specifications of HW, and its values will affect the number
of fragments in receiving packets when scatter is enabled. By the way,
some PMDs may force to enable scatter when the MTU is bigger than the HW
RX buffer size.

At present, we have no way to expose relevant information to upper layer
users. So, add a field named rx_buf_size in rte_eth_rxq_info to indicate
the buffer size used in receiving packets for HW. And this field is
optional, so there is no need to forcibly update all PMDs.

This patchset also add hns3 PMD implementation and update the testpmd.

Chengchang Tang (3):
  ethdev: add a field for rte_eth_rxq_info
  app/testpmd: Add RX buffer size display in queue info querry
  net/hns3: add rx buffer size to rx qinfo querry

 app/test-pmd/config.c          | 1 +
 drivers/net/hns3/hns3_rxtx.c   | 2 ++
 lib/librte_ethdev/rte_ethdev.h | 2 ++
 3 files changed, 5 insertions(+)

--
2.7.4



More information about the dev mailing list