From: Dapeng Yu Date: Fri, 19 Mar 2021 07:11:18 +0000 (+0800) Subject: examples/packet_ordering: fix port configuration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c99f115bbd9d56630fc5a8d404443e0761684832;p=dpdk.git examples/packet_ordering: fix port configuration A global ethernet port configuration is assigned to local variable because in this way the local variable may be updated as required. But this local variable is not used as input of rte_eth_dev_configure() in original implementation, and cause that fast mbuf free feature cannot be enabled on port. This patch use this local variable as input of rte_eth_dev_configure(). Fixes: 6833f919f56b ("examples/packet_ordering: convert to new ethdev offloads API") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu Acked-by: Reshma Pattan --- diff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c index ff670747fd..bcbda05f5e 100644 --- a/examples/packet_ordering/main.c +++ b/examples/packet_ordering/main.c @@ -297,7 +297,7 @@ configure_eth_port(uint16_t port_id) if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) port_conf.txmode.offloads |= DEV_TX_OFFLOAD_MBUF_FAST_FREE; - ret = rte_eth_dev_configure(port_id, rxRings, txRings, &port_conf_default); + ret = rte_eth_dev_configure(port_id, rxRings, txRings, &port_conf); if (ret != 0) return ret;