> From: Sriram Yagnaraman [mailto:sriram.yagnara...@ericsson.com]
> 
> When using ring based ethdev, mbuf->port is not set on received packets.
> 
> For applications that use the mbuf->port to identify the incoming port,
> especially when eventdev RX adapter pulls the packet on a different core
> and the application running on a worker core has no clue on the incoming
> port. This change adds some cycles at receive, to set the port of
> course.

I agree that the mbuf->port field must be set before returning from 
rte_eth_rx_burst().

I'm not aware how applications use the ring based ethdev, so I might be asking 
silly questions...

How about all the other mbuf fields normally set by the PMD before returning 
from rte_eth_rx_burst()?

Is the enqueueing core supposed to set them?

Or if the ring is only used for queueing packets originally received (at a 
physical port) by the enqueueing core, why not keep the mbuf->port value from 
the original reception?

> 
> Please advise if this change is something that can be upstreamed.
> 
> Signed-off-by: Sriram Yagnaraman <sriram.yagnara...@ericsson.com>

Reply via email to