From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D3C642820; Thu, 23 Mar 2023 09:23:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E4B642BAC; Thu, 23 Mar 2023 09:23:52 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2088.outbound.protection.outlook.com [40.107.101.88]) by mails.dpdk.org (Postfix) with ESMTP id 3975B4021E; Thu, 23 Mar 2023 09:23:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RD7rA4NOP4xj4qH3BGiiBPl1QcVludtliE35ecKHHmGNK+UAFjEZl7tgpthdJnNmlTWpdQrfRGn1zl0jjFXdDoGnBcLAnFf8SD+NN0nEuJAlqJCTyGRWCDJwnzb82gozlUUqwmCjywdEZGFksdb3xF8kcnyhuEKpoXxCugUtIt8UU6s45/Z9Fq177XaEYMj7GivjYBaPy06H1eG2H0UxL3aJrJIsRqul0bdMD1T7K+uao0LIXZTQny/uTbRce7iW/vlNgA+BEv8VN7EGopp/FIz7GJpABAk9pn+cgMV9/XtFwYoPxvb8J0CrlGblGc4s7zjZrXU4l/QlxZa0hj+Ztw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Aa2XTWS0/t/IDhkQGeOZWNxaliaKmibrOpNxocmTBjg=; b=YME6X/KaBOybj8f1Y214D8KmWz7kRaBAPGNnNiRbQZ0VjixoffMQZZ3M734bUK67zvi9qqIoawoK7f0U+sXZabZ8pa4VVj740amtx9LpvXknWNu20fzpT82laoyDvrcdQDCL6vLUcb82dJecEbjT134k0a3lQWL/vGNnBnJslnFI5Xc+SlPW6PBmwvHQyL86Jqu3kdqV7eaNgdOj3Q9C14jitiulpjPnJu3e980WOfe4HMPuNpMKZs9EHicVCU65d1T08QLdGnMuPtJ7BEpBhxwzOY4Mf2DvwSSm0lXK5r/SLfGkUieenR5lznyV+XTMMiozh/Hl/t0TK1/5I70LYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Aa2XTWS0/t/IDhkQGeOZWNxaliaKmibrOpNxocmTBjg=; b=XHPGdq7NCRVotrKhFatNqoGhJCIWoD39G+A2jgmKfCqHBiNNigmooZhM+Bk9EIxy8/43Vja8CnXTLovj4dAxsM7ZykuXlguuGmMaOU9OLA6U6pEiOKmfS1SAd+zBhT+YjN6LSFEY+1GUsEgLysFgy+3/Jchw6Vl24OZv/79VkqB8E2abHL6LTbk+PtG1IZVxfAqeQL0Fq2dl5voz6XQs6LdmeQQgYa+gFPTtS7XcOicB3ytVanXJ49IkoTj6Rp6puWFTPi+/3i4F6GMWdtyCrSAbA2OwI23nl+qf+MEmSXbjtt0/dUmXoy1ICjjWJoYyD9qRJ92A8GGOWrgENOx7Hw== Received: from DM4PR12MB5184.namprd12.prod.outlook.com (2603:10b6:5:397::18) by PH7PR12MB6489.namprd12.prod.outlook.com (2603:10b6:510:1f7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.27; Thu, 23 Mar 2023 08:23:49 +0000 Received: from DM4PR12MB5184.namprd12.prod.outlook.com ([fe80::1728:c308:1d15:ff2d]) by DM4PR12MB5184.namprd12.prod.outlook.com ([fe80::1728:c308:1d15:ff2d%8]) with mapi id 15.20.6178.037; Thu, 23 Mar 2023 08:23:48 +0000 From: Bing Zhao To: Stephen Hemminger CC: Slava Ovsiienko , Matan Azrad , "dev@dpdk.org" , Raslan Darawsheh , "stable@dpdk.org" Subject: RE: [PATCH v2] common/mlx5: fix the sysfs port name translation Thread-Topic: [PATCH v2] common/mlx5: fix the sysfs port name translation Thread-Index: AQHZXLJY9RXhExT0dUGkOdULiiIuGa8G5H0AgAEiyKA= Date: Thu, 23 Mar 2023 08:23:48 +0000 Message-ID: References: <20221110155726.649190-1-bingz@nvidia.com> <20230322113412.685653-1-bingz@nvidia.com> <20230322075946.4a9a5b6a@hermes.local> In-Reply-To: <20230322075946.4a9a5b6a@hermes.local> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR12MB5184:EE_|PH7PR12MB6489:EE_ x-ms-office365-filtering-correlation-id: 34fc0cbf-a3c5-4e09-8050-08db2b77ed46 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tto0/EE6W2+FlLR0K8WYnUrSajIfcdheC70y+yVfPa8S4n5IImZiFj2cyfl0f8t12lilZjJZ5TPlV4A4w5VthuKFAsJVPHVGGXUEYai/BgehxyOp8dV4mllRK5BljUa7qvXqsxacdOUgMT1sBgjxvJfJb6hmqnIg1WH9iUkJZEIoNuMddPZJ5apXHeByVTeKyG1YSorOPWwYqTrVwOBYXZjp2JZRiv5QzbGrzHmfedvc4Hdjk7MaZPyu5u8tLM0eYfvqD/cKezLIm7omLaZiCzv+C1+5yYyhYOYxzDD15SQm5x/9mODtlVjt3gUiOd8jgBChvgGuRVUhk+bgLrLa7fyepdhpADABV25VBrkE8LUvk6dMPFhXbesC7B3yIM2+c8lPtq61ChhNlNjXSAGdu5w7gnvC/qeBG4RZEFypicdinami7dB/AvVUf9ihe5FV639lfNaRP/j3/GHpCBydkSCD5sDjxtWjFx1bSGU1F4hZwRUGEaBBdjnF87UR/17qsqeITgJmyTFC138qqMB9WuCk6mMKcxDOSLQDIKRcmdQ63JyiP1Z9LFa3wf33pep5UPb/it2GSnqUt8jDiZ5nJPxIXVgnJ506Hp7AO6jne68A1kuFK04tQ8jgvLBvjor2yxHkElmFqw0nyIjwB6LhRhbAeDCrhykTC6iRfc13B+kMe0E6yttqeoKudKBQsiYgSfziqmS6KnXsDfResADrAA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5184.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(451199018)(55016003)(38100700002)(7696005)(186003)(316002)(54906003)(83380400001)(64756008)(4326008)(478600001)(33656002)(38070700005)(8676002)(52536014)(53546011)(41300700001)(6506007)(86362001)(26005)(4744005)(66446008)(8936002)(66946007)(76116006)(66556008)(71200400001)(2906002)(6916009)(66476007)(9686003)(122000001)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TjFx44RTRc3cZ+I0K4RJ4FC+/KWlEjuCKQlcJgaTdv7lahSPkKMFxyq30NTU?= =?us-ascii?Q?Ip4FEkANtVhkh52pV7zjgHrZP3zuQi63WMGgcmwg9SaC0h5ekCK0sLBbbQV4?= =?us-ascii?Q?cf3s8lj3iwKXlUj1xS90BongrS9UFCkO1MV1HFjUwtkd2ccPwgWEgEsQj+05?= =?us-ascii?Q?nT4tFGEyA0Mew11VOoayHWyXKKmplS0ztwB367ubdRoss34G3twpI3yoAb3T?= =?us-ascii?Q?URwfukjlMsQCwetR0wY57SqZWA40c0VrzBUnlS3fJ41eSPYpkh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4NyOFeo3XX/cidQAwvcIrxLHRQFQTCL1N3++J?= =?us-ascii?Q?gOom3XJbyxEI7RPAMJDNEJGQ/XlUCsz5XWaHD8gq3d0QHx1jN9M+T/QpZhab?= =?us-ascii?Q?pXsmO7aYPmp3w9Ve1GCK1vT30lxtstCKyPh5QJIVpF0OL+LEFDvntc8eWkG+?= =?us-ascii?Q?LGi2UIOF8aaXZ5Rl2Bncq5qpjWv9GIPupsh5LNlHDLgA5hIDCoJlkwpxurMc?= =?us-ascii?Q?x4zRAVqfRCb+MOtkVO6tcJWqGyrSS+31YnZ4LVOLKg21gDVqYKmqDoxltM4b?= =?us-ascii?Q?WQS4plFrkZN7U8DMDeZv8ho7WAlooeZbchZaLY4OmGmDgVGscyGSXh9M7tSC?= =?us-ascii?Q?Q6Q7ubRnLzkalQUSZ/2YuQupbYBwpTWtg1lYOuZRTNBWcWHQDUg+XOIdx9i2?= =?us-ascii?Q?kRZax6TIcp0T6t+eR3E=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5184.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34fc0cbf-a3c5-4e09-8050-08db2b77ed46 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Mar 2023 08:23:48.4354 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: T/9P0KBr6H7Y7S9syvyNEsw/1hKF1CrrbExnrJuVEwnQnQvMchVXOBGkLUVwqYxdCFaRkbOFx+uhP69ntEY1qw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6489 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Stephen, > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, March 22, 2023 11:00 PM > To: Bing Zhao > Cc: Slava Ovsiienko ; Matan Azrad > ; dev@dpdk.org; Raslan Darawsheh > ; stable@dpdk.org > Subject: Re: [PATCH v2] common/mlx5: fix the sysfs port name translation >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Wed, 22 Mar 2023 13:34:12 +0200 > Bing Zhao wrote: >=20 > > + tail_nl =3D strchr(port_name, '\r'); > > + if (tail_nl) > > + *tail_nl =3D '\0'; >=20 > 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.