a1e7e04bac
For kupeng 930, there are 3 registers to control the enable status of a TQP(i.e. task queue pair, include a txq and a rxq). One of them controls whether the TQP is enabled, and the other two controls whether the rxq and txq are enabled. The registers used to control the enabled status of the rxq and txq are enabled by default. Therefore, after the TQP is enabled, the rxq and txq are enabled by default. Currently, when the number of rxq is not equal to the number of txq, the unused rxqs or txqs are not disabled by driver, so these unused queues will be enabled in this situation. And the related HW rings have not been initialized which could lead to a hardware exception. This patch fix it by disable these unused queues during enable the TQPs. Fixes: fa29fe45a7b4 ("net/hns3: support queue start and stop") Cc: stable@dpdk.org Signed-off-by: Chengchang Tang <tangchengchang@huawei.com> Signed-off-by: Lijun Ou <oulijun@huawei.com>