On 11/5/21 08:32, Xia, Chenbo wrote:
Hi Maxime,

-----Original Message-----
From: dev <dev-boun...@dpdk.org> On Behalf Of Chenbo Xia
Sent: Thursday, November 4, 2021 1:11 PM
To: dev@dpdk.org
Cc: maxime.coque...@redhat.com
Subject: [dpdk-dev] [PATCH] examples/vhost: fix port init failure in mergeable
mode

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....@intel.com>
Reported-by: Xingguang He <xingguang...@intel.com>
---

I see a unit test failure on this patch, but I think this patch should not cause
issues in unit test, could you help me confirm it?

I can confirm, mcslock_autotest is not related to your change, and it seems other patches are facing the same issue, eg:
https://lab.dpdk.org/results/dashboard/patchsets/19997/

Maxime

Thanks,
Chenbo


Reply via email to