Skip to content

Commit

Permalink
net/cxgbe: fix port ID in Rx mbuf
Browse files Browse the repository at this point in the history
[ upstream commit 86b4d566467d06c66dd5ed2474e12bb17d8861f2 ]

Fill the correct DPDK ethdev port_id, instead of local adapter
physical port_id in mbufs allocated for Rx.

Fixes: 78fc1a7 ("cxgbe: improve Rx performance")

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
  • Loading branch information
chelsiocudbg authored and cpaelzer committed Jul 6, 2022
1 parent b135550 commit 4192276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgbe/sge.c
Expand Up @@ -1939,7 +1939,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 */
Expand Down

0 comments on commit 4192276

Please sign in to comment.