[PATCH] examples/vhost: fix port init failure in mergeable mode
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Nov 16 11:25:13 CET 2021
On 11/4/21 06:11, Chenbo Xia wrote:
> When the example starts in mergeable mode with an i40e port,
> it fails to launch because the examples use default mtu MAX_MTU
> to configure ethdev. The root cause is some devices have Ethernet
> frame overhead and then MAX_MTU will be larger than device's max
> mtu, so the ethdev configure will fail.
>
> This patch checks the device's max mtu before setting the ethdev
> configuration. If the device has a max mtu, use that value to
> configure.
>
> Fixes: 1bb4a528c41f ("ethdev: fix max Rx packet length")
>
> Signed-off-by: Chenbo Xia <chenbo.xia at intel.com>
> Reported-by: Xingguang He <xingguang.he at intel.com>
> ---
> examples/vhost/main.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list