[dpdk-dev] [PATCH] net/ice: fix freeing queues on DCF device reset
Zhang, Qi Z
qi.z.zhang at intel.com
Wed Oct 13 13:00:02 CEST 2021
> -----Original Message-----
> From: Yu, DapengX <dapengx.yu at intel.com>
> Sent: Monday, October 11, 2021 3:26 PM
> To: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>
> Cc: dev at dpdk.org; Yu, DapengX <dapengx.yu at intel.com>; stable at dpdk.org
> Subject: [PATCH] net/ice: fix freeing queues on DCF device reset
>
> From: Dapeng Yu <dapengx.yu at intel.com>
>
> In function ice_dcf_stop_queues(), RX queues and TX queues are actually not
> freed, so their pointers shall not be set to NULL when queues are stopped.
>
> This patch adds function call to free queues on DCF device close and reset,
The patch only add function call in device close but not reset.
> which also set the RX and TX queues' pointers to NULL on freeing queues, and
> avoids referring to the released resource when device is started again.
>
> Fixes: 1a86f4dbdf42 ("net/ice: support DCF device reset")
> 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 after refined the commit log.
Thanks
Qi
More information about the dev
mailing list