Re: [External] Re: [PATCH] mlx5: fix race at mlx5_dev_close

2025-05-08 Thread 贺鹏
It's 1ms, not 1 second.  It's a workaround, just to provide a fast and dirty fix for someone who needs this. From: "Stephen Hemminger" > Date:  Tue, Oct 8, 2024, 01:54 > Subject:  [External] Re: [PATCH] mlx5: fix race at mlx5_dev_close > To: "hepeng" >

[PATCH] mlx5: fix race at mlx5_dev_close

2024-04-10 Thread hepeng
From: "hepeng.0320" mlx5_dev_close currently will set priv->sh->port[priv->dev_port - 1].nl_ih_port_id to RTE_MAX_ETHPORTS to avoid mlx5_dev_interrupt_nl_cb to use the port's dev_private, because later the rte_eth_dev_close will free the dev_private and set the pointer to NULL. However, since ml