[dpdk-dev] [PATCH 02/20] thunderx/nicvf: add pmd skeleton

Stephen Hemminger stephen at networkplumber.org
Mon May 9 19:41:22 CEST 2016


On Sat, 7 May 2016 20:46:20 +0530
Jerin Jacob <jerin.jacob at caviumnetworks.com> wrote:

> +
> +static inline struct nicvf*
> +nicvf_pmd_priv(struct rte_eth_dev *eth_dev)
> +{
> +	return (struct nicvf *)eth_dev->data->dev_private;
> +}

Cast here is unnecessary because dev_private is void *


More information about the dev mailing list