[PATCH v4 02/10] net/iavf: do not store ethdev pointer
Bruce Richardson
bruce.richardson at intel.com
Thu Oct 22 14:57:32 CEST 2026
On Wed, Oct 21, 2026 at 03:25:42PM +0100, Anatoly Burakov wrote:
> We should not be storing rte_eth_dev pointers in shared memory, because
> rte_eth_dev pointers are process local. To address that, remove the pointer
> from iavf_info, replace it with `rte_eth_devices`-based lookup, and rework
> the call paths to either use that lookup, or not require ethdev pointer
> in the first place.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> drivers/net/intel/iavf/iavf.h | 9 ++++++--
> drivers/net/intel/iavf/iavf_ethdev.c | 11 +++++-----
> drivers/net/intel/iavf/iavf_ipsec_crypto.c | 24 +++++++++++-----------
> drivers/net/intel/iavf/iavf_ipsec_crypto.h | 4 ++--
> drivers/net/intel/iavf/iavf_vchnl.c | 7 ++++---
> 5 files changed, 30 insertions(+), 25 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list