net/cxgbe: fix port ID in Rx mbuf
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Mon, 18 Apr 2022 22:24:18 +0000 (03:54 +0530)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 5 May 2022 15:58:09 +0000 (17:58 +0200)
Fill the correct DPDK ethdev port_id, instead of local adapter
physical port_id in mbufs allocated for Rx.

Fixes: 78fc1a716ae8 ("cxgbe: improve Rx performance")
Cc: stable@dpdk.org
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/sge.c

index 1c76b8e..5c17600 100644 (file)
@@ -1910,7 +1910,7 @@ int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq,
        iq->stat = (void *)&iq->desc[iq->size * 8];
        iq->eth_dev = eth_dev;
        iq->handler = hnd;
-       iq->port_id = pi->pidx;
+       iq->port_id = eth_dev->data->port_id;
        iq->mb_pool = mp;
 
        /* set offset to -1 to distinguish ingress queues without FL */