On 6/21/2023 3:43 PM, David Marchand wrote:
> As reported by Ilya [1], unconditionally calling
> rte_flow_get_restore_info() impacts an application performance for drivers
> that do not provide this ops.
> It could also impact processing of packets that require no call to
> rte_flow_get_restore_info() at all.
> 
> Register a dynamic mbuf flag when an application negotiates tunnel
> metadata delivery (calling rte_eth_rx_metadata_negotiate() with
> RTE_ETH_RX_METADATA_TUNNEL_ID).
> 
> Drivers then advertise that metadata can be extracted by setting this
> dynamic flag in each mbuf.
> 
> The application then calls rte_flow_get_restore_info() only when required.
> 
> Link: http://inbox.dpdk.org/dev/[email protected]/
> Signed-off-by: David Marchand <[email protected]>
> Acked-by: Andrew Rybchenko <[email protected]>
> Acked-by: Viacheslav Ovsiienko <[email protected]>
> Tested-by: Ali Alnubani <[email protected]>
> Acked-by: Ori Kam <[email protected]>
>

Applied to dpdk-next-net/main, thanks.

Reply via email to