net/ice: fix freeing queues on DCF device reset
authorDapeng Yu <dapengx.yu@intel.com>
Mon, 11 Oct 2021 07:25:46 +0000 (15:25 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 13 Oct 2021 10:58:04 +0000 (12:58 +0200)
commitfff4914bd9e6bcb68faea5b988942477f73ee34e
tree66502ab2e2b05f94d7d7790dddd38fb1b56b2bd2
parentcc2f82b96a64789cc72beeb775a3a3543b5f2064
net/ice: fix freeing queues on DCF device reset

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,
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@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf_ethdev.c