examples/vhost: fix launch with physical port
authorWenwu Ma <wenwux.ma@intel.com>
Fri, 4 Mar 2022 16:24:24 +0000 (16:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 4 Mar 2022 14:14:30 +0000 (15:14 +0100)
commit917229c24e871bbc3225a0227eb3f0faaa7aaa69
tree51bf19990cfab06c6c86b3e5b65f00f7820a1b39
parent4f670c5af0253f5276fd19f38fdfa72772c68cd0
examples/vhost: fix launch with physical port

dpdk-vhost will fail to launch with a 40G i40e port because
there are not enough mbufs. This patch adds a new option
--total-num-mbufs, through which the user can set larger
mbuf pool to avoid this problem.

Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")
Cc: stable@dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
examples/vhost/main.c