From: Shahaf Shuler <shahafs@mellanox.com>
To: "Yongseok Koh" <yskoh@mellanox.com>,
"Adrien Mazarguil" <adrien.mazarguil@6wind.com>,
"Nélio Laranjeiro" <nelio.laranjeiro@6wind.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Yongseok Koh <yskoh@mellanox.com>
Subject: Re: [dpdk-dev] [PATCH v3] net/mlx5: change device reference for secondary process
Date: Wed, 9 May 2018 11:30:05 +0000 [thread overview]
Message-ID: <DB7PR05MB4426EF40097260BFD5A96FCFC3990@DB7PR05MB4426.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <20180509110450.19316-1-yskoh@mellanox.com>
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@mellanox.com>
applied to next-net-mlx. thanks
prev parent reply other threads:[~2018-05-09 11:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 6:13 [dpdk-dev] [PATCH] net/mlx5: fix device reference in " Yongseok Koh
2018-05-02 6:53 ` Nélio Laranjeiro
2018-05-02 7:12 ` Yongseok Koh
2018-05-02 23:10 ` [dpdk-dev] [PATCH v2] net/mlx5: change device reference for " Yongseok Koh
2018-05-06 6:25 ` Shahaf Shuler
2018-05-07 6:46 ` Yongseok Koh
2018-05-09 11:04 ` [dpdk-dev] [PATCH v3] " Yongseok Koh
2018-05-09 11:30 ` Shahaf Shuler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB7PR05MB4426EF40097260BFD5A96FCFC3990@DB7PR05MB4426.eurprd05.prod.outlook.com \
--to=shahafs@mellanox.com \
--cc=adrien.mazarguil@6wind.com \
--cc=dev@dpdk.org \
--cc=nelio.laranjeiro@6wind.com \
--cc=yskoh@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).