From: Sunil Kumar Kori Date: Thu, 25 Jul 2019 08:24:10 +0000 (+0530) Subject: examples/ip_frag: remove Tx fast free offload flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ed553e3db4a84af0ddac0d898476333d61adb93a;p=dpdk.git examples/ip_frag: remove Tx fast free offload flag Application uses different pool to allocate direct and indirect mbufs which are further spliced together to consturct a fragmented packet and same is transmitted over the port which is configured with DEV_TX_OFFLOAD_MBUF_FAST_FREE enabled i.e. all segments must belong to the same pool. But constructed packet violates the conditions. So fixing DEV_TX_OFFLOAD_MBUF_FAST_FREE flag during device configuration. Fixes: fdb9eff67f0c ("examples/ip_fragmentation: convert to new offloads API") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori Reviewed-by: Jerin Jacob Acked-by: Konstantin Ananyev --- diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c index 03be0c12e9..324d60773f 100644 --- a/examples/ip_fragmentation/main.c +++ b/examples/ip_fragmentation/main.c @@ -939,9 +939,6 @@ main(int argc, char **argv) n_tx_queue = nb_lcores; if (n_tx_queue > MAX_TX_QUEUE_PER_PORT) n_tx_queue = MAX_TX_QUEUE_PER_PORT; - if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) - local_port_conf.txmode.offloads |= - DEV_TX_OFFLOAD_MBUF_FAST_FREE; ret = rte_eth_dev_configure(portid, 1, (uint16_t)n_tx_queue, &local_port_conf); if (ret < 0) {