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 36F614280A; Wed, 22 Mar 2023 15:59:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2912B410F9; Wed, 22 Mar 2023 15:59:51 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 951B440E09 for ; Wed, 22 Mar 2023 15:59:49 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id i15so7254858pfo.8 for ; Wed, 22 Mar 2023 07:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1679497189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=uMI26+h5+iXfWQqXZVrqkbERTiqvFSd/dNsDMTa3ec8=; b=essEzceYDZ6ZTfnJQ4FX+u8XOkfdcsBICHCpP3RnYjHT9E/wvC0nvA2+7+hVZIcKjR 1/TKnn+LV2xxXwlbmnPmz2IXJGC0E0JSIHTZeGVwRMY/V8/Z78Dbqwu/ERKxoLsxVtHl S4HUqOpUJjADOCQ6ULFRfdVBPzHH1HvtCeVAluLAbYjCn3204wrvJFYD6GwDx01oREiM gWHKfBkICiIarRfk8aCgX5AzRTr9v9vscOTIriNTflzahqK/6EGERLFtNfzRuGrwzpdb zYKSqLa6hkGLojd2D8+9jbQTcLwe5JNj1Zxhh3YbgkwKSIDdyjoEzAP1km7FeGOglTi1 IgmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679497189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uMI26+h5+iXfWQqXZVrqkbERTiqvFSd/dNsDMTa3ec8=; b=3EpGcjLupfxh6+3jtw1nFLqWkJxs/TTEFVKOw4TJ7dVmitaRuauAE83Grt5T6UE59E 3xGT/GdHt7r1YDW2j9D4WzANhu397ByFATjVlDOk5vk0HcxJI5WmGRKhz8W96ZHaV1gU 8jt8RwZIj1oCAX4CD2W9y/tQIt1h7AcEcTGYaCvdhnFBMs1ht4LmuEQHgr8jtkjhGahQ zpkLQyOmb7mvNJJyt7dNQdNoOGrbeblLXJzDhlGoqNxXn6/CjqTex6ZB1DO4g801wWS1 Bpe0CpbMQWHcgioATOJzHvlWJwEW/XaI7OFlUhopnNLt8uxj/n3R0YZFjqhkNkw4WB9g P2Lg== X-Gm-Message-State: AO0yUKXHfqdFs6qIQ6koGkAC5GJ+uYodmjY3J3Gu5ys45u9FK/pNpW1M IBCGq5ZYJ1LUHCIPqK99UgNBUQ== X-Google-Smtp-Source: AK7set+HVtZCnYuoieG9KPyw9kvOPlMTc2fSZZylQpxBrR////81ACeGdHlHb+agRvJacQPuTagIPQ== X-Received: by 2002:a62:180f:0:b0:62a:4503:53b8 with SMTP id 15-20020a62180f000000b0062a450353b8mr131035pfy.1.1679497188773; Wed, 22 Mar 2023 07:59:48 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id s22-20020aa78d56000000b006243e706195sm10147467pfe.196.2023.03.22.07.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 07:59:48 -0700 (PDT) Date: Wed, 22 Mar 2023 07:59:46 -0700 From: Stephen Hemminger To: Bing Zhao Cc: , , , , Subject: Re: [PATCH v2] common/mlx5: fix the sysfs port name translation Message-ID: <20230322075946.4a9a5b6a@hermes.local> In-Reply-To: <20230322113412.685653-1-bingz@nvidia.com> References: <20221110155726.649190-1-bingz@nvidia.com> <20230322113412.685653-1-bingz@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 22 Mar 2023 13:34:12 +0200 Bing Zhao 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.