[dpdk-dev] [PATCH v3 07/14] net/ppfe: add device start stop operations

Ferruh Yigit ferruh.yigit at intel.com
Fri Oct 4 17:42:33 CEST 2019


On 10/1/2019 12:02 PM, Gagandeep Singh wrote:
> This patch adds device start, stop and close
> operations.
> 
> Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
> Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
> Acked-by: Nipun Gupta <nipun.gupta at nxp.com>

<...>

> +static int
> +pfe_eth_info(struct rte_eth_dev *dev,
> +		struct rte_eth_dev_info *dev_info)
> +{
> +	struct pfe_eth_priv_s *internals = dev->data->dev_private;
> +
> +	dev_info->if_index = internals->id;
> +	dev_info->max_mac_addrs = PPFE_MAX_MACS;
> +	dev_info->max_rx_pktlen = JUMBO_FRAME_SIZE;
> +	dev_info->max_rx_queues = dev->data->nb_rx_queues;
> +	dev_info->max_tx_queues = dev->data->nb_tx_queues;
> +	dev_info->min_rx_bufsize = HIF_RX_PKT_MIN_SIZE;

Since set MTU supported in this patchet, it can be good to set 'min_mtu' &
'max_mtu' too.


More information about the dev mailing list