Hi, > -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Raslan Darawsheh > Sent: Sunday, November 22, 2020 12:04 PM > To: dev@dpdk.org > Cc: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko > <viachesl...@nvidia.com>; NBU-Contact-Thomas Monjalon > <tho...@monjalon.net>; Benoît Ganne <bga...@cisco.com>; Benoît > Ganne <bga...@cisco.co> > Subject: [dpdk-dev] [PATCH v3] net/mlx5: allow unknown link speed > > From: Benoît Ganne <bga...@cisco.com> > > mlx5 PMD refuses to update link state if link speed is defined but > status is down or if link speed is undefined but status is up, even if > the ioctl() succeeded. > This prevents application to detect link up/down event, especially when > the link speed is not correctly detected. > > Commit [1] allowed returning unknown link speed, so now pmd allow > the return of unknown link speed in the above case. > > Due to some old kernel driver bug, link speed wasn't detected properly. > > [1] > https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit.dp > dk.org%2Fdpdk%2Fcommit%2F%3Fid%3D810b17d116f03&data=04%7C0 > 1%7Crasland%40nvidia.com%7C3965964e417641f146d008d88ece1678%7C430 > 83d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637416363079871052%7CUn > known%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6 > Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=t0Qj8hEjCBYi1bzy25lJAGTr > bI0C4l6oImqAe174rNA%3D&reserved=0 > > Signed-off-by: Benoît Ganne <bga...@cisco.co> > Signed-off-by: Raslan Darawsheh <rasl...@nvidia.com> > Acked-by: Matan Azrad <ma...@nvidia.com> > --- > v2: rebase the code and add doc update > v3: reword commit log, and return correct link speed > --- > doc/guides/rel_notes/release_20_11.rst | 1 + > drivers/net/mlx5/linux/mlx5_ethdev_os.c | 16 +++------------- > 2 files changed, 4 insertions(+), 13 deletions(-)
Reverted V2 and applied v3 to next-net-mlx, Kindest regards, Raslan Darawsheh