[dpdk-dev] [PATCH v2] net/i40e: fix data path corrupt on secondary process

Zhang, Qi Z qi.z.zhang at intel.com
Thu Jul 1 14:37:28 CEST 2021



> -----Original Message-----
> From: Yu, DapengX <dapengx.yu at intel.com>
> Sent: Monday, June 21, 2021 3:24 PM
> To: Xing, Beilei <beilei.xing at intel.com>
> Cc: dev at dpdk.org; Zhang, Qi Z <qi.z.zhang at intel.com>; Yu, DapengX
> <dapengx.yu at intel.com>; stable at dpdk.org
> Subject: [PATCH v2] net/i40e: fix data path corrupt on secondary process
> 
> From: Dapeng Yu <dapengx.yu at intel.com>
> 
> The rte_eth_devices array is not in share memory, it should not be referenced
> by i40e_adapter which is shared by primary and secondary.
> Any process set i40e_adapter->eth_dev will corrupt another process's context.
> 
> The patch removed the field "eth_dev" from i40e_adapter.
> Now, when the data paths try to access the rte_eth_dev_data instance, they
> should replace adapter->eth_dev->data with adapter->pf.dev_data.
> 
> Fixes: 4861cde46116 ("i40e: new poll mode driver")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dapeng Yu <dapengx.yu at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


More information about the dev mailing list