From: Hanumanth Pothula <hpoth...@marvell.com>

Now, dpu offload application sends READY measage with only MAC port's
hw_funcs. Hence, process the READY message accordingly.

Signed-off-by: Hanumanth Pothula <hpoth...@marvell.com>
---
 drivers/net/cnxk/cnxk_rep_msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/cnxk/cnxk_rep_msg.c b/drivers/net/cnxk/cnxk_rep_msg.c
index f3a62a805e..53c94fbb0d 100644
--- a/drivers/net/cnxk/cnxk_rep_msg.c
+++ b/drivers/net/cnxk/cnxk_rep_msg.c
@@ -374,7 +374,7 @@ notify_rep_dev_ready(cnxk_rep_msg_ready_data_t *rdata, void 
*data,
                goto fail;
        }
 
-       for (i = 0; i < rdata->nb_ports / 2; i++) {
+       for (i = 0; i < rdata->nb_ports; i++) {
                rep_id = UINT16_MAX;
                rc = cnxk_rep_state_update(eswitch_dev, rdata->data[i], 
&rep_id);
                if (rc) {
-- 
2.18.0

Reply via email to