X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2Finit.c;h=37c2b95fd63b315bc1534c57c873fabc1a492a26;hb=2ecdf174420396279514f35c4d1e037b8ddfc2fd;hp=8914f766f6d62f8ccceb8cc0068865261df7908a;hpb=e2ef4628ee294c6dafd09ca39323f3a7ffbfc128;p=dpdk.git diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 8914f766f6..37c2b95fd6 100644 --- a/examples/qos_sched/init.c +++ b/examples/qos_sched/init.c @@ -59,8 +59,6 @@ static struct rte_eth_conf port_conf = { .rxmode = { .max_rx_pkt_len = ETHER_MAX_LEN, .split_hdr_size = 0, - .ignore_offload_bitfield = 1, - .offloads = DEV_RX_OFFLOAD_CRC_STRIP, }, .txmode = { .mq_mode = ETH_DCB_NONE, @@ -96,7 +94,6 @@ app_init_port(uint16_t portid, struct rte_mempool *mp) tx_conf.tx_free_thresh = 0; tx_conf.tx_rs_thresh = 0; tx_conf.tx_deferred_start = 0; - tx_conf.txq_flags = ETH_TXQ_FLAGS_IGNORE; /* init port */ RTE_LOG(INFO, APP, "Initializing port %"PRIu16"... ", portid); @@ -298,7 +295,7 @@ int app_init(void) char ring_name[MAX_NAME_LEN]; char pool_name[MAX_NAME_LEN]; - if (rte_eth_dev_count() == 0) + if (rte_eth_dev_count_avail() == 0) rte_exit(EXIT_FAILURE, "No Ethernet port - bye\n"); /* load configuration profile */