From: Rahul Bhansali <rbhans...@marvell.com>

Avoid priority flow control configuration when port is
started.

Signed-off-by: Rahul Bhansali <rbhans...@marvell.com>
---
 drivers/net/cnxk/cnxk_ethdev_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c 
b/drivers/net/cnxk/cnxk_ethdev_ops.c
index 5df7927d7b..068b7c3502 100644
--- a/drivers/net/cnxk/cnxk_ethdev_ops.c
+++ b/drivers/net/cnxk/cnxk_ethdev_ops.c
@@ -1121,8 +1121,8 @@ nix_priority_flow_ctrl_rq_conf(struct rte_eth_dev 
*eth_dev, uint16_t qid,
        struct roc_nix_cq *cq;
        int rc, i;
 
-       if (roc_model_is_cn96_ax() && data->dev_started) {
-               /* On Ax, CQ should be in disabled state
+       if (data->dev_started) {
+               /* RQ should be in disabled state
                 * while setting flow control configuration.
                 */
                plt_info("Stop the port=%d for setting flow control",
-- 
2.25.1

Reply via email to