List comments

GET /api/patches/73548/comments/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[
    {
        "id": 115615,
        "web_url": "https://patches.dpdk.org/comment/115615/",
        "msgid": "<VI1PR05MB671842F940B4BC3A327D4E41C2640@VI1PR05MB6718.eurprd05.prod.outlook.com>",
        "date": "2020-07-09T12:01:38",
        "subject": "Re: [dpdk-dev] [PATCH] common/mlx5: fix physical port name pattern\n\trecognition",
        "submitter": {
            "id": 513,
            "url": "https://patches.dpdk.org/api/people/513/",
            "name": "Raslan Darawsheh",
            "email": "rasland@mellanox.com"
        },
        "content": "Hi,\n\n> -----Original Message-----\n> From: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n> Sent: Wednesday, July 8, 2020 11:52 PM\n> To: dev@dpdk.org\n> Cc: Matan Azrad <matan@mellanox.com>; Raslan Darawsheh\n> <rasland@mellanox.com>; stable@dpdk.org\n> Subject: [PATCH] common/mlx5: fix physical port name pattern recognition\n> \n> This patch makes the Infiniband device physical port name\n> recognition more strict. Currently mlx5 PMD might recognize\n> the names like \"pf0sf0\" erroneously as \"pf0\" and the wrong\n> device type (host PF representor) is reported.\n> \n> The names like \"pf0sf0\" belong to PCI subfunctions which\n> is currently not supported by mlx5 PMD and this false\n> recognition must be eliminated.\n> \n> Fixes: 420bbdae89f2 (\"net/mlx5: fix host physical function representor\n> naming\")\n> Cc: stable@dpdk.org\n> \n> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n> ---\n>  drivers/common/mlx5/linux/mlx5_common_os.c | 14 +++++++-------\n>  1 file changed, 7 insertions(+), 7 deletions(-)\n> \n> diff --git a/drivers/common/mlx5/linux/mlx5_common_os.c\n> b/drivers/common/mlx5/linux/mlx5_common_os.c\n> index e74aa89..7bb3ba6 100644\n> --- a/drivers/common/mlx5/linux/mlx5_common_os.c\n> +++ b/drivers/common/mlx5/linux/mlx5_common_os.c\n> @@ -89,7 +89,7 @@\n>  mlx5_translate_port_name(const char *port_name_in,\n>  \t\t\t struct mlx5_switch_info *port_info_out)\n>  {\n> -\tchar pf_c1, pf_c2, vf_c1, vf_c2;\n> +\tchar pf_c1, pf_c2, vf_c1, vf_c2, eol;\n>  \tchar *end;\n>  \tint sc_items;\n> \n> @@ -97,9 +97,9 @@\n>  \t * Check for port-name as a string of the form pf0vf0\n>  \t * (support kernel ver >= 5.0 or OFED ver >= 4.6).\n>  \t */\n> -\tsc_items = sscanf(port_name_in, \"%c%c%d%c%c%d\",\n> +\tsc_items = sscanf(port_name_in, \"%c%c%d%c%c%d%c\",\n>  \t\t\t  &pf_c1, &pf_c2, &port_info_out->pf_num,\n> -\t\t\t  &vf_c1, &vf_c2, &port_info_out->port_name);\n> +\t\t\t  &vf_c1, &vf_c2, &port_info_out->port_name,\n> &eol);\n>  \tif (sc_items == 6 &&\n>  \t    pf_c1 == 'p' && pf_c2 == 'f' &&\n>  \t    vf_c1 == 'v' && vf_c2 == 'f') {\n> @@ -110,8 +110,8 @@\n>  \t * Check for port-name as a string of the form p0\n>  \t * (support kernel ver >= 5.0, or OFED ver >= 4.6).\n>  \t */\n> -\tsc_items = sscanf(port_name_in, \"%c%d\",\n> -\t\t\t  &pf_c1, &port_info_out->port_name);\n> +\tsc_items = sscanf(port_name_in, \"%c%d%c\",\n> +\t\t\t  &pf_c1, &port_info_out->port_name, &eol);\n>  \tif (sc_items == 2 && pf_c1 == 'p') {\n>  \t\tport_info_out->name_type =\n> MLX5_PHYS_PORT_NAME_TYPE_UPLINK;\n>  \t\treturn;\n> @@ -120,8 +120,8 @@\n>  \t * Check for port-name as a string of the form pf0\n>  \t * (support kernel ver >= 5.7 for HPF representor on BF).\n>  \t */\n> -\tsc_items = sscanf(port_name_in, \"%c%c%d\",\n> -\t\t\t  &pf_c1, &pf_c2, &port_info_out->pf_num);\n> +\tsc_items = sscanf(port_name_in, \"%c%c%d%c\",\n> +\t\t\t  &pf_c1, &pf_c2, &port_info_out->pf_num, &eol);\n>  \tif (sc_items == 3 && pf_c1 == 'p' && pf_c2 == 'f') {\n>  \t\tport_info_out->port_name = -1;\n>  \t\tport_info_out->name_type =\n> MLX5_PHYS_PORT_NAME_TYPE_PFHPF;\n> --\n> 1.8.3.1\n\n\nPatch applied to next-net-mlx,\n\nKindest regards,\nRaslan Darawsheh",
        "headers": {
            "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
            "Return-Path": "<dev-bounces@dpdk.org>",
            "x-ms-office365-filtering-correlation-id": "8106cccb-44a1-46d7-e3eb-08d823ffd5ab",
            "X-BeenThere": "dev@dpdk.org",
            "x-ms-exchange-antispam-messagedata": "\n D2Atp1YsmvpfEwNyozgHLhKX8aJqctB+Qoj4fPMTrVfaTxV7RqTELm3lBlzl0blqEs/+bji82x+DAipzDExY0h0szjemVbpD0lIrFbkFjLvb7o8A12GPRwFMBTXObnv/d730VFUwSnvwQqwfifNv6JcDpGUkHR7C3aW2Z7F2PFoCitvj0n6QP4C99w06vV8I0y3zOilMoBKecEH16uqesW2JJQXb2mI7Mz4y3w27dhFHqpyRgxLya9NXHhoown/oiZw678B09Mi8qtxSYA0qBxcislldE4AsJehCCkn1xJd9JEhe1GYnm52RzZvlkbp1yuWKx2OEGSAU7V3Gw3F4sgIOWWCRIxH49RXvfS5xA5SegzeHH9XxadLXTLhcJos3uxPb6yo/FwEy2ZTT2aIUxPNjv23BMg7l+QBTzuNdr0deLcKR4ePYxfGTnIOjy6LU8YBFYAVE/IUfYdRBswshWXC28Yky+nLqjaY0OEkl4cc=",
            "X-MS-Exchange-CrossTenant-originalarrivaltime": "09 Jul 2020 12:01:38.0185 (UTC)",
            "Message-ID": "\n <VI1PR05MB671842F940B4BC3A327D4E41C2640@VI1PR05MB6718.eurprd05.prod.outlook.com>",
            "x-ms-oob-tlc-oobclassifiers": "OLM:8882;",
            "x-originating-ip": "[84.242.49.134]",
            "Received": [
                "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C66DEA0528;\n\tThu,  9 Jul 2020 14:01:58 +0200 (CEST)",
                "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9D7D51E876;\n\tThu,  9 Jul 2020 14:01:43 +0200 (CEST)",
                "from EUR01-DB5-obe.outbound.protection.outlook.com\n (mail-eopbgr150079.outbound.protection.outlook.com [40.107.15.79])\n by dpdk.org (Postfix) with ESMTP id D233D1E537;\n Thu,  9 Jul 2020 14:01:38 +0200 (CEST)",
                "from VI1PR05MB6718.eurprd05.prod.outlook.com (2603:10a6:800:13b::9)\n by VI1PR05MB5053.eurprd05.prod.outlook.com (2603:10a6:803:5b::26)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Thu, 9 Jul\n 2020 12:01:38 +0000",
                "from VI1PR05MB6718.eurprd05.prod.outlook.com\n ([fe80::bc68:25c4:b452:f24d]) by VI1PR05MB6718.eurprd05.prod.outlook.com\n ([fe80::bc68:25c4:b452:f24d%9]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020\n 12:01:38 +0000"
            ],
            "X-MS-Exchange-CrossTenant-userprincipalname": "\n ywHSV6PtJXxEDmGOqB20PChtirICr/Xyo6dGuqUieGK2qbN2U4w4l1Dw3Q0Gpr8RMElG4JOyDoRcfzFmokeheA==",
            "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
            "List-Post": "<mailto:dev@dpdk.org>",
            "x-forefront-antispam-report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:VI1PR05MB6718.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFTY:;\n SFS:(4636009)(346002)(136003)(396003)(39860400002)(376002)(366004)(71200400001)(52536014)(55016002)(9686003)(83380400001)(316002)(478600001)(450100002)(7696005)(86362001)(6506007)(53546011)(26005)(4326008)(33656002)(54906003)(2906002)(66946007)(76116006)(66476007)(66446008)(64756008)(66556008)(110136005)(5660300002)(8936002)(8676002)(186003);\n DIR:OUT; SFP:1101;",
            "In-Reply-To": "<1594241536-5300-1-git-send-email-viacheslavo@mellanox.com>",
            "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
            "X-MS-Has-Attach": "",
            "MIME-Version": "1.0",
            "References": "<1594241536-5300-1-git-send-email-viacheslavo@mellanox.com>",
            "X-MS-Exchange-CrossTenant-id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
            "x-ms-traffictypediagnostic": "VI1PR05MB5053:",
            "Content-Type": "text/plain; charset=\"us-ascii\"",
            "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 8106cccb-44a1-46d7-e3eb-08d823ffd5ab",
            "X-MS-Exchange-CrossTenant-AuthSource": "VI1PR05MB6718.eurprd05.prod.outlook.com",
            "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
            "Accept-Language": "en-US",
            "To": "Slava Ovsiienko <viacheslavo@mellanox.com>, \"dev@dpdk.org\" <dev@dpdk.org>",
            "Content-Language": "en-US",
            "x-ms-exchange-senderadcheck": "1",
            "Thread-Topic": "[PATCH] common/mlx5: fix physical port name pattern recognition",
            "x-microsoft-antispam-prvs": "\n <VI1PR05MB5053D5898F84EF85A0621262C2640@VI1PR05MB5053.eurprd05.prod.outlook.com>",
            "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=Z6eBDNf+YuUjBI7EljECgaz8s5Zx+hUYTWcbWpUMpGU=;\n b=jCzKGkBOlXPoUnlkZ7s5Ny2lOE4XGDzxXR+44sP3ewrrqJWCxPMQ2cHSIpHQJmPv+TO5waZNLKP183vYWEQiWEX5zrBKYRnmcjaBwVB56lQU0NDZNwzO6ia4yUT4uXeUOdA0aWuktxhCwfK88bWuOm9TsbiaB0F8tZ6E4WY5hFk=",
            "Thread-Index": "AQHWVWmtKx2qDkHUqUyNyCS/9tPqKKj/JdCw",
            "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
            "Delivered-To": "patchwork@inbox.dpdk.org",
            "X-Mailman-Version": "2.1.15",
            "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=emG30wQi6n/lbLSLL3Z/LN6dF0dcvQtYdvGvzV8bD+s95Y5Kvmg9k7MqZAWLcd8+nRfDmbPbKT62VGX+B+qWqKpOgBobEsk0R/o31QRaRfK3+XdtUxfkjeFMnPRZctZsLGREhWOhp+HNKHcDyqHbILpkfI1YcwHt7QFrHe0UCvFDr0x+m4PAOgkbwQZQtTqRikqSQVB69KeWTBJyC7bVSCCoGFk8SOsnnzmHpxAmEzR+1ZcKe7cFotQjlsTkKIsBoC4NklPRx7HmbZkFgyCogTt+JonkvIFphy1e03L1nKZkhQ1moHyKutru/2XUy8wXBX7uXH2PnuppC8cjDo+ZUA==",
            "Subject": "Re: [dpdk-dev] [PATCH] common/mlx5: fix physical port name pattern\n\trecognition",
            "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
            "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR05MB5053",
            "X-OriginatorOrg": "Mellanox.com",
            "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
            "X-MS-TNEF-Correlator": "",
            "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com;\n dkim=pass header.d=mellanox.com; arc=none",
            "Date": "Thu, 9 Jul 2020 12:01:38 +0000",
            "Precedence": "list",
            "From": "Raslan Darawsheh <rasland@mellanox.com>",
            "Content-Transfer-Encoding": "quoted-printable",
            "authentication-results": "mellanox.com; dkim=none (message not signed)\n header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com;",
            "x-microsoft-antispam": "BCL:0;",
            "X-Original-To": "patchwork@inbox.dpdk.org",
            "x-ms-exchange-transport-forked": "True",
            "Errors-To": "dev-bounces@dpdk.org",
            "x-ms-office365-filtering-ht": "Tenant",
            "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
            "CC": "Matan Azrad <matan@mellanox.com>, \"stable@dpdk.org\" <stable@dpdk.org>",
            "Sender": "\"dev\" <dev-bounces@dpdk.org>",
            "x-microsoft-antispam-message-info": "\n R+KmZypdqBwrT9gZdjs6OFB7m/Aph2s5mCVpl6rd4Ud3j6K7Obb+Apr9BvVsc6mnHQfU1A+6Vd3pDFsmq8gWHyLazIRMdkLGvEz+UdcT/ZyrufbDjPUvt/Dk7N3lN7DiuEd/bZMiQuH6FGSC3t1SfBBCxLJ2iWs5XavVonAzNwcowvFZhaAIBs1PmYFtsrOBS5ywQX6UAv6RjWqo4q0x05AgqeYsQVth6C0im2snTdAByIGZrRCFfz/7b21yZFYS8PYwUxOOJfnHg1TGt4cHNtpOLYFDwmPNi7S4+6pyXei67kxD3Idup0lnFah62+PS1Jrel2sXztA8WBDuOPrNPQ==",
            "x-ms-publictraffictype": "Email",
            "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=Z6eBDNf+YuUjBI7EljECgaz8s5Zx+hUYTWcbWpUMpGU=;\n b=hrSaWJ2S5K8Ck6WJCN2ap1odunjycpXOcf/80lczifmBbNIo6PM/ShDG/x1YSYBRciLt7CAQQgkRK2vszTGkXtY5V3wcf/ouBMYLY0+6SkLfMXmLf5RPPZpgqsMRsOBR1+BjSDHftGdIsF+2UoxvQKD5loYWve5ip4IGHxqB+fYgudx10MBaT1P7DU6cWH35oeRvTnAGpAiTF9WGeBiSSHYySlBKRS+9da9kBbqGWiMxsmZ2hEJ8Pyqoo96AzyJM4f/vwFQy5WLrGb8yEnQ0CEITjeWBh4Oh5WO/RZXm8RSwnvPPAAIeUuJX0n06LD1KkVHEit/g/B9GO/CAS/Fmgg=="
        }
    }
]