[dpdk-dev] [PATCH v4 1/5] ethdev: add a field for rxq info structure

Stephen Hemminger stephen at networkplumber.org
Sat Sep 5 18:50:41 CEST 2020


On Sat, 5 Sep 2020 17:07:30 +0800
Chengchang Tang <tangchengchang at huawei.com> wrote:

> diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
> index 70295d7..859111a 100644
> --- a/lib/librte_ethdev/rte_ethdev.h
> +++ b/lib/librte_ethdev/rte_ethdev.h
> @@ -1420,6 +1420,8 @@ struct rte_eth_rxq_info {
>  	struct rte_eth_rxconf conf; /**< queue config parameters. */
>  	uint8_t scattered_rx;       /**< scattered packets RX supported. */
>  	uint16_t nb_desc;           /**< configured number of RXDs. */
> +	/**< Buffer size used for HW when receive packets. */
> +	uint16_t rx_buf_size;

Minor suggestion.
If you shorten the comment (which is not that useful) and use the same
case, then it will fit on the same line and look like the rest of the code.

	uint16_t rx_buf_size;      /**< hardware receive buffer size */


More information about the dev mailing list