X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost%2Fmain.c;h=c23d453551cf094ee10a11f66722928a1828a192;hb=3111eae26e2296ec049e6dfc3c0c522d7b9e1c62;hp=c81b8f51792347da50073eb3924e6884031aeb71;hpb=b66a2ca91e04b196a25ff2c357aac3cf43bbd12a;p=dpdk.git diff --git a/examples/vhost/main.c b/examples/vhost/main.c index c81b8f5179..c23d453551 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -3604,9 +3604,14 @@ MAIN(int argc, char *argv[]) char pool_name[RTE_MEMPOOL_NAMESIZE]; char ring_name[RTE_MEMPOOL_NAMESIZE]; - rx_conf_default.start_rx_per_q = (uint8_t)zero_copy; + /* + * Zero copy defers queue RX/TX start to the time when guest + * finishes its startup and packet buffers from that guest are + * available. + */ + rx_conf_default.rx_deferred_start = (uint8_t)zero_copy; rx_conf_default.rx_drop_en = 0; - tx_conf_default.start_tx_per_q = (uint8_t)zero_copy; + tx_conf_default.tx_deferred_start = (uint8_t)zero_copy; nb_mbuf = num_rx_descriptor + num_switching_cores * MBUF_CACHE_SIZE_ZCP + num_switching_cores * MAX_PKT_BURST;