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 86b4d56 ]

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 steevenlee committed Jun 20, 2022
1 parent 5e7c16e commit 063ce7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgbe/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,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 063ce7b

Please sign in to comment.