net/qede: fix port reconfiguration
authorRasesh Mody <rmody@marvell.com>
Fri, 15 May 2020 06:34:19 +0000 (23:34 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit05ccc9d8a9f9338b1cb4ae515c60c60f8b7f518d
treeed3b8d307aa87677cf40d3daf3b8a224acb7e34c
parenta60704d1ac3debeec5f97c8563f5fc0390150e0b
net/qede: fix port reconfiguration

This patch fixes deallocation of all fastpath resources unconditionally,
when re-configuring the device. When re-allocating resources PMD depends
on application to explicitly setup the Rx/Tx queue.

Deallocation of all the resources is only required if the Rx/Tx queue
configuration changes. For other scenarios like KNI MTU change we'd keep
existing configuration.

Fixes: 8de0c4201926 ("net/qede: fix odd number of queues usage in 100G mode")
Fixes: dd28bc8c6ef4 ("net/qede: fix VF port creation sequence")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rmody@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
drivers/net/qede/qede_ethdev.c
drivers/net/qede/qede_rxtx.c