Show a patch.

GET /api/patches/74639/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 74639,
    "url": "https://patches.dpdk.org/api/patches/74639/",
    "web_url": "https://patches.dpdk.org/patch/74639/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20200723110613.8363-1-rasland@mellanox.com>",
    "date": "2020-07-23T11:06:13",
    "name": "[v2] net/mlx5: fix VF MAC address set over Bluefield",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a30e7cb80d55c0806f07a3d6d2354dff5dc969c0",
    "submitter": {
        "id": 513,
        "url": "https://patches.dpdk.org/api/people/513/",
        "name": "Raslan Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74639/mbox/",
    "series": [
        {
            "id": 11251,
            "url": "https://patches.dpdk.org/api/series/11251/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11251",
            "date": "2020-07-23T11:06:13",
            "name": "[v2] net/mlx5: fix VF MAC address set over Bluefield",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/11251/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74639/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74639/checks/",
    "tags": {},
    "headers": {
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-Mailman-Version": "2.1.15",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM4PR0501MB2721",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n SFvbtWjkSjMk2bPakS5T1jDLMNNt8sAUy96HIs3gRFttbhcaVoSJZWTKW3GrmoeEE4CadzLeZiO0CX8kRDutmA==",
        "Precedence": "list",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-BeenThere": "dev@dpdk.org",
        "X-ClientProxiedBy": "ZR0P278CA0053.CHEP278.PROD.OUTLOOK.COM\n (2603:10a6:910:1d::22) To AM0PR05MB6707.eurprd05.prod.outlook.com\n (2603:10a6:20b:15b::17)",
        "Content-Transfer-Encoding": "8bit",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-AntiSpam-MessageData": "\n rR2QS60zeQrSOuAOs/J2zopVb9yC6owXPEYDogh1EnumhnaPlh8EDd238zCsDe7e/BQbU6kV7nMxywDNL7Wi0JN4k8o+nYNVY/BiCk+2bx4nEl3EM8i985aKYe0Kn/SxhiZzsm1bam9g+S6GX1YkdqZRZueGpH4pR0TZDpSU0WTlgtXLoy+djUbB7SD2htZDLJpOt1MI5NzB1+GGHZPH+nnMaYqVMv2nEhMf/pQejsbhSqrd6Nxp5MlHiDsAWDN2I8NSO1RvWhGHxrhclmNWYNVyCvi3mHXcVQI6IEAaaCQgnvuvmyaDPo9TQTHmkyvMsviouooD6Ubw8el1u3OnjUtJA60hbqme2JqTiim+FJr+cy5z5t72wAswm3ZTXL6UzJsCsRhRz0chk1tg6K1A3zvg6cU+oU7yo7bE/ytiOt4n2hSuj12haJ/vv5dxj7XwPIy0j5sIlaz0ayQWhM+om7HxvglswBbnKBkYMPCx0XrTZmdyO/PuivFveBnar5/7",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 44CF3A0521;\n\tThu, 23 Jul 2020 13:06:30 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D27BA1BE9A;\n\tThu, 23 Jul 2020 13:06:28 +0200 (CEST)",
            "from EUR05-AM6-obe.outbound.protection.outlook.com\n (mail-am6eur05on2051.outbound.protection.outlook.com [40.107.22.51])\n by dpdk.org (Postfix) with ESMTP id 78E9F1BE90;\n Thu, 23 Jul 2020 13:06:27 +0200 (CEST)",
            "from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17)\n by AM4PR0501MB2721.eurprd05.prod.outlook.com (2603:10a6:200:5d::16)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23; Thu, 23 Jul\n 2020 11:06:26 +0000",
            "from AM0PR05MB6707.eurprd05.prod.outlook.com\n ([fe80::ecd3:6008:3784:4012]) by AM0PR05MB6707.eurprd05.prod.outlook.com\n ([fe80::ecd3:6008:3784:4012%5]) with mapi id 15.20.3195.028; Thu, 23 Jul 2020\n 11:06:26 +0000",
            "from mellanox.com (84.242.49.134) by\n ZR0P278CA0053.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::22) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id\n 15.20.3216.23 via Frontend Transport; Thu, 23 Jul 2020 11:06:25 +0000"
        ],
        "Subject": "[dpdk-dev] [PATCH v2] net/mlx5: fix VF MAC address set over\n\tBluefield",
        "X-MS-PublicTrafficType": "Email",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Message-Id": "<20200723110613.8363-1-rasland@mellanox.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=I/Mh2OOC1iqcWkjEIy06uXqWavSaXyPxDdZmD/wQipE=;\n b=Y+CKohlC1i3y5wMAe/zKpQKvT5+E29VauINNK4KzUl0dlm6oIKHKFy4bzoFhkap2CLDcartpff8Rd3va4TexU5ZSInpOx2hFz9RvRv3cqCv4K8tfUgSJpw5wZwrZn6OkrTE83Wq0jdMKoeftTfDurWBtxSxmxZ+2HaPTLxHK5v8=",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "To": "dev@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "From": "Raslan Darawsheh <rasland@mellanox.com>",
        "X-Microsoft-Antispam-Message-Info": "\n wox9vtBFZiCWQr1mR1C8/QeEALzsBCmmUpFP7hqC6zOBz64+x9Lj8A6XJylNIwJAm7e58aHaECrOiTNiSPWSbqmNOQJHfoG+QHy16A9Hos32RTSiGyx2/SDni31tiswwy3WxpPsocM6T70fagrT4TuhnGZlrqiSuxgtJGJSO9ADJpRwWFGztv4SsWdrO5HuwRLhw/7bBQ+BP4Jyu827SFXqJ/J0CXQ5ehAMuZ7nGPp8TUnpjfRIpOBlKh02ZHeKDpl3RlEB9lwOJBYQzIe6kcdAg/WYHsTZVvEftnv9DvRxPsRb9cq6meF2eeD+itzcaBSFZ+Miu4aetis+JzZvQ3w==",
        "Cc": "ferruh.yigit@intel.com, stable@dpdk.org,\n Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "X-MS-Exchange-CrossTenant-AuthSource": "AM0PR05MB6707.eurprd05.prod.outlook.com",
        "X-MS-TrafficTypeDiagnostic": "AM4PR0501MB2721:",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "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",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "X-OriginatorOrg": "Mellanox.com",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Microsoft-Antispam-PRVS": "\n <AM4PR0501MB2721ABBD3C19FC77604EB5B4C2760@AM4PR0501MB2721.eurprd05.prod.outlook.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "MIME-Version": "1.0",
        "In-Reply-To": "<20200722090755.26103-1-rasland@mellanox.com>",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "References": "<20200722090755.26103-1-rasland@mellanox.com>",
        "Content-Type": "text/plain",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:1923;",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Originating-IP": "[84.242.49.134]",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE;\n SFTY:;\n SFS:(4636009)(366004)(346002)(396003)(376002)(136003)(39860400002)(66946007)(66556008)(66476007)(107886003)(55016002)(4326008)(52116002)(7696005)(36756003)(6666004)(8886007)(5660300002)(186003)(316002)(2906002)(478600001)(16526019)(6916009)(26005)(1076003)(8676002)(83380400001)(86362001)(8936002)(956004)(2616005);\n DIR:OUT; SFP:1101;",
        "X-Mailer": [
            "git-send-email 2.27.0",
            "git-send-email 2.27.0"
        ],
        "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=I/Mh2OOC1iqcWkjEIy06uXqWavSaXyPxDdZmD/wQipE=;\n b=lygHKlg9HQ2EeKmrQZ9J5s5UO+FhZfABER7+qvYtFERDmQSvw8Ehi50/rO/vLQMUWLZTmpwIdxTiNZo4LwyHsXONrHga0ricC2TTzg+2vE/ExWclS9r85eivt3OP+trPgQLR4oolSDti5h3ClhpZ5hO5SE0t0FkrsoaPN0UxGnT3jHDyFKggtgMJ42feBm0s+yufjxG/p8DGwZtNrKGGC4mu7Yyo3plMTJKVOENkAyeHcYx1TRblTjhYWe18Q+PyyM+vohnUn81KxLOSjHlUTom+5j96kjkrmK0O72yoomtwqj1XAvdl8oNao5C9TUGYbSaqwnPFL4qZ1PTST/bYZg==",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 74fd3955-91a1-4839-33b5-08d82ef87152",
        "Date": "Thu, 23 Jul 2020 14:06:13 +0300",
        "X-MS-Office365-Filtering-Correlation-Id": "74fd3955-91a1-4839-33b5-08d82ef87152",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "X-Microsoft-Antispam": "BCL:0;",
        "Errors-To": "dev-bounces@dpdk.org",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=Zrlplgc5VRL1mYFXqQDIoRjJGj4OCnbjvxz8gGDN7LtabXve8nkvFAm5+wEFgaBVojsynaPPbhH5RMHpWfsH8S3NdYFih3LoO7Yp732uiJwkBnZLhOVVeSLmW1jRmQsqG6vF2TrYoPH52jy2jBvZGm5uYp8jrnQobb5wisppObAYapK7mDZwEQ/08nwsARrs9mG30nj79aAbZKV/DNU2VCkzM3CfCz9K8prFgac5jAA7j+cGAmHODGX8Xe5y754OOL2+wQFSYbboKMsbtMx81ItC6P/KD/cmjZFHwSzyE3q1237hVhZZ+XvSZfMf5MlbknPZWgNjblD/61TtP8QWGA==",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "23 Jul 2020 11:06:26.3682 (UTC)"
    },
    "content": "When trying to set MAC address of an ethethet device and if it was\na representor, PMD sets the MAC over the corresponding VF instead.\n\nFor the case of HPF (Host PF representor on BluueField), PMD shouldn't\nattempt to set it, since it doesn't have any corresponding VF and fails.\n\nThis will fix the issue by setting the MAC on the dev directly.\n\nFixes: 0d1d73170820 (\"net/mlx5: set VF MAC address from host\")\nCc: stable@dpdk.org\n\nSigned-off-by: Raslan Darawsheh <rasland@mellanox.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\nv2: fix the use of representor bit to use the representor id instead\n---\n drivers/net/mlx5/mlx5_mac.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_mac.c b/drivers/net/mlx5/mlx5_mac.c\nindex 2d808d629..88c52b29f 100644\n--- a/drivers/net/mlx5/mlx5_mac.c\n+++ b/drivers/net/mlx5/mlx5_mac.c\n@@ -157,8 +157,11 @@ mlx5_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)\n \tuint16_t port_id;\n \tstruct mlx5_priv *priv = dev->data->dev_private;\n \n-\t/* Configuring the VF instead of its representor. */\n-\tif (priv->representor) {\n+\t/*\n+\t * Configuring the VF instead of its representor,\n+\t * need to skip the special case of HPF on Bluefield.\n+\t */\n+\tif (priv->representor && priv->representor_id >= 0) {\n \t\tDRV_LOG(DEBUG, \"VF represented by port %u setting primary MAC address\",\n \t\t\tdev->data->port_id);\n \t\tRTE_ETH_FOREACH_DEV_SIBLING(port_id, dev->data->port_id) {\n",
    "prefixes": [
        "v2"
    ]
}