rte_flow_get_restore_info() API is under experimental attribute. Using it has a performance impact that can be avoided for non-experimental compilation.
Do not call it without experimental support. Reported-by: Cian Ferriter <cian.ferri...@intel.com> Signed-off-by: Eli Britstein <el...@nvidia.com> Reviewed-by: Gaetan Rivet <gaet...@nvidia.com> --- lib/dpif-netdev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 26218ad72..2e654426e 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -7092,13 +7092,14 @@ static struct tx_port * pmd_send_port_cache_lookup( static inline int dp_netdev_hw_flow(const struct dp_netdev_pmd_thread *pmd, - odp_port_t port_no, + odp_port_t port_no OVS_UNUSED, struct dp_packet *packet, struct dp_netdev_flow **flow) { - struct tx_port *p; + struct tx_port *p OVS_UNUSED; uint32_t mark; +#ifdef ALLOW_EXPERIMENTAL_API /* Packet restoration API required. */ /* Restore the packet if HW processing was terminated before completion. */ p = pmd_send_port_cache_lookup(pmd, port_no); if (OVS_LIKELY(p)) { @@ -7109,6 +7110,7 @@ dp_netdev_hw_flow(const struct dp_netdev_pmd_thread *pmd, return -1; } } +#endif /* If no mark, no flow to find. */ if (!dp_packet_has_flow_mark(packet, &mark)) { -- 2.28.0.2311.g225365fb51 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev