[dpdk-dev] [PATCH v3] net/mlx5: change device reference for secondary process

Shahaf Shuler shahafs at mellanox.com
Wed May 9 13:30:05 CEST 2018


Wednesday, May 9, 2018 2:05 PM, Yongseok Koh:
> Subject: [dpdk-dev] [PATCH v3] net/mlx5: change device reference for
> secondary process
> 
> rte_eth_devices[] is not shared between primary and secondary process,
> but a static array to each process. The reverse pointer of device (priv->dev) is
> invalid. Instead, priv has the pointer to shared data of the device,
>   struct rte_eth_dev_data *dev_data;
> 
> Two macros are added,
>   #define PORT_ID(priv) ((priv)->dev_data->port_id)
>   #define ETH_DEV(priv) (&rte_eth_devices[PORT_ID(priv)])
> 
> Signed-off-by: Yongseok Koh <yskoh at mellanox.com>

applied to next-net-mlx. thanks



More information about the dev mailing list