X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fvhost_xen%2Fmain.c;h=60312b5f212f9c772032621e40fbceed0702d986;hb=824cb29c0e7b8a2b3ed285546c3a39a8e0b3cd44;hp=b672bf3ea3473bf7d514333bf3cc58d79e71ed3e;hpb=11f51a26d3e3a3cf78efa4c0a20d6aa5b29117c2;p=dpdk.git diff --git a/examples/vhost_xen/main.c b/examples/vhost_xen/main.c index b672bf3ea3..60312b5f21 100644 --- a/examples/vhost_xen/main.c +++ b/examples/vhost_xen/main.c @@ -67,7 +67,6 @@ (num_switching_cores*MBUF_CACHE_SIZE)) #define MBUF_CACHE_SIZE 64 -#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM) /* * RX and TX Prefetch, Host, and Write-back threshold values should be @@ -1476,7 +1475,7 @@ main(int argc, char *argv[]) /* Create the mbuf pool. */ mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", NUM_MBUFS_PER_PORT * valid_num_ports, MBUF_CACHE_SIZE, 0, - MBUF_DATA_SIZE, rte_socket_id()); + RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); if (mbuf_pool == NULL) rte_exit(EXIT_FAILURE, "Cannot create mbuf pool\n");