[v1 02/12] net/enetc: Add RX and TX queue APIs for ENETC4 PMD

Stephen Hemminger stephen at networkplumber.org
Wed Oct 15 23:36:28 CEST 2025


On Thu,  9 Oct 2025 16:46:23 +0530
vanshika.shukla at nxp.com wrote:

> +int
> +enetc4_tx_queue_setup(struct rte_eth_dev *dev,
> +		     uint16_t queue_idx,
> +		     uint16_t nb_desc,
> +		     unsigned int socket_id __rte_unused,
> +		     const struct rte_eth_txconf *tx_conf)
> +{
> +	int err = 0;

Unnecessary initialization. Don't see where err is used except
after malloc failure (goto fail).

Better to not initialize if not needed so compiler can generate
warnings.



More information about the dev mailing list