examples/bpf: fix build
[dpdk.git] / examples / ip_fragmentation / main.c
index edf87a1..324d607 100644 (file)
@@ -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) {
@@ -987,6 +984,7 @@ main(int argc, char **argv)
                printf("\n");
 
                /* init one TX queue per couple (lcore,port) */
+               rte_eth_dev_info_get(portid, &dev_info);
                queueid = 0;
                for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
                        if (rte_lcore_is_enabled(lcore_id) == 0)