[PATCH v2] common/mlx5: fix the sysfs port name translation
Bing Zhao
bingz at nvidia.com
Thu Mar 23 09:23:48 CET 2023
Hi Stephen,
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Wednesday, March 22, 2023 11:00 PM
> To: Bing Zhao <bingz at nvidia.com>
> Cc: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; dev at dpdk.org; Raslan Darawsheh
> <rasland at nvidia.com>; stable at dpdk.org
> Subject: Re: [PATCH v2] common/mlx5: fix the sysfs port name translation
>
> External email: Use caution opening links or attachments
>
>
> On Wed, 22 Mar 2023 13:34:12 +0200
> Bing Zhao <bingz at nvidia.com> wrote:
>
> > + tail_nl = strchr(port_name, '\r');
> > + if (tail_nl)
> > + *tail_nl = '\0';
>
> This is a file provided by Linux kernel, there is no way it could have a CR
> character.
Correct, thanks for pointing this. I was overanxious. I will remove this as well.
More information about the stable
mailing list