Show a patch.

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

{
    "id": 74611,
    "url": "https://patches.dpdk.org/api/patches/74611/?format=api",
    "web_url": "https://patches.dpdk.org/patch/74611/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "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": "<20200722090755.26103-1-rasland@mellanox.com>",
    "date": "2020-07-22T09:07:55",
    "name": "net/mlx5: fix VF MAC address set over Bluefield",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "79c81ab903a6c61554e2f1cf23028db1f519a061",
    "submitter": {
        "id": 513,
        "url": "https://patches.dpdk.org/api/people/513/?format=api",
        "name": "Raslan Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@mellanox.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74611/mbox/",
    "series": [
        {
            "id": 11232,
            "url": "https://patches.dpdk.org/api/series/11232/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11232",
            "date": "2020-07-22T09:07:55",
            "name": "net/mlx5: fix VF MAC address set over Bluefield",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11232/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74611/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74611/checks/",
    "tags": {},
    "headers": {
        "X-OriginatorOrg": "Mellanox.com",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:1923;",
        "X-Mailman-Version": "2.1.15",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "22 Jul 2020 09:08:10.2430 (UTC)",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "Content-Type": "text/plain",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Office365-Filtering-Correlation-Id": "303929dd-ef41-4930-3259-08d82e1ec157",
        "Message-Id": "<20200722090755.26103-1-rasland@mellanox.com>",
        "X-MS-PublicTrafficType": "Email",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 389ECA0526;\n\tWed, 22 Jul 2020 11:08:14 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C55921BFD4;\n\tWed, 22 Jul 2020 11:08:12 +0200 (CEST)",
            "from EUR05-VI1-obe.outbound.protection.outlook.com\n (mail-vi1eur05on2074.outbound.protection.outlook.com [40.107.21.74])\n by dpdk.org (Postfix) with ESMTP id 3DB35199BC;\n Wed, 22 Jul 2020 11:08:11 +0200 (CEST)",
            "from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17)\n by AM0PR05MB5186.eurprd05.prod.outlook.com (2603:10a6:208:f3::24)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Wed, 22 Jul\n 2020 09:08:10 +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; Wed, 22 Jul 2020\n 09:08:10 +0000",
            "from mellanox.com (84.242.49.134) by\n AM0PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:208:55::33) 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; Wed, 22 Jul 2020 09:08:09 +0000"
        ],
        "Subject": "[dpdk-dev] [PATCH] net/mlx5: fix VF MAC address set over Bluefield",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=FQIoYzcLBhFVtgjpRHQl0WbeDKoBpKtztCKXYx7JaRA+bz8CtuemjYmgSGsRLFjVuAgpsFMtP8zqsoCtRsBs4H1Rkyc0NpKVk8k4Pnj/UsmF9CA1+ErSWy3g8Li9eMnE9GVEtY8I8Nf/nmGodgrmu6dCHpEHmDyftMbIv18WeaUMFsMEJC3HqgHviZF/vTgIYQO1tlOAuOHtnEv8+LCFlxUgrp3MFWqTGh2hD0e33JnkCVxZ3RnpOq58ocz/HEFw9Hxk+2PYoatF+ePxugdQTcTcx9JgyyC9xgDWn8vf31x3x5frSx2asbewXznMAMSF4w3FDeWTYATROUt0YfGkiQ==",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n WNiiwTDMd+W57Taapc8McpqycnZXEEnrcr4GSrfMo4Lm20OOnjB8TI/VFSk7F0qSixLzF+49SJt08Tba/eJD2w==",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-MS-Exchange-AntiSpam-MessageData": "\n kvIFobRb/7erakzfI1mg1IiY8GuZyxd5iD39BNFi+/xIiA3pT/boq1GAqaFTI4dqfs2ooCDWWOWxYXyJnQymaucMTxfQSaqPUq7DXjdgAHsRv663nJoVRkyOrMqRI23FIHBcF9RQELjRgHbdIsttYhFLOMXnH1fl+WkbuDY9cTmn4EoR5yMchVBChF0rW/+f6z9w6bek9PQTK5Bu+o3giZFmR6uBJLo8ERp4Ey56OREW3QJyadbtnwMt+y4l3xXLcZSqMsP+4s1XP3y228q/JS3HPssskHfPTHQQyVADjp4MICw6mT8f9Yp/k/8oS9BtVUPVZhwdRGH6Yd21hHWn806SyD5l3bFwRBEr1DtGZgIxbCITseXjbiyNvqXLc0Ec+2qiXN3IcfwB7cXZcwK3+tfQbH6ClJHxCK+S6iCC6Z4GHFrRQLTCqSG0aUUTPsM3e9kVTJMgt19vKVU6oSDilZzI4aLrFtjxWQDtmCwvOcD2hdFFCP33Idn0eFwo0emh",
        "Precedence": "list",
        "Date": "Wed, 22 Jul 2020 12:07:55 +0300",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "stable@dpdk.org,\n\tViacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "Content-Transfer-Encoding": "8bit",
        "To": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "MIME-Version": "1.0",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-MS-Exchange-CrossTenant-AuthSource": "AM0PR05MB6707.eurprd05.prod.outlook.com",
        "From": "Raslan Darawsheh <rasland@mellanox.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-MS-Exchange-CrossTenant-Id": "a652971c-7d2e-4d9b-a6a4-d149256f461b",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "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)(346002)(376002)(39860400002)(366004)(136003)(396003)(2906002)(6916009)(86362001)(107886003)(8886007)(478600001)(2616005)(1076003)(956004)(5660300002)(450100002)(36756003)(6666004)(16526019)(186003)(26005)(52116002)(7696005)(4326008)(316002)(66476007)(66556008)(66946007)(83380400001)(55016002)(8936002)(8676002);\n DIR:OUT; SFP:1101;",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 303929dd-ef41-4930-3259-08d82e1ec157",
        "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",
        "X-Mailer": [
            "git-send-email 2.27.0",
            "git-send-email 2.27.0"
        ],
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Authentication-Results": "dpdk.org; dkim=none (message not signed)\n header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com;",
        "X-MS-TrafficTypeDiagnostic": "AM0PR05MB5186:",
        "X-Originating-IP": "[84.242.49.134]",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM0PR05MB5186",
        "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=dHD+IqV5GQZFCrdY+affUuum5Pwtp7ckSrAlLsHocVM=;\n b=tCAc4vfQIGBPJwRMsCRinbX+Fl3TSxgFQP1CyRzVJo6b0VpT1VV70LhO37o/ewkigegY36paKNrsPaQ0dj8E7Sm5UrciEGmxq+QQsXcVPexSEFV/WaIqePJdeou1KEe4VaVs+G0J0LE/mXEngHt3nomiN/R8tALCAsmAUGm2wkg=",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Microsoft-Antispam-PRVS": "\n <AM0PR05MB51862D62547DDD2D98DE3866C2790@AM0PR05MB5186.eurprd05.prod.outlook.com>",
        "X-Microsoft-Antispam-Message-Info": "\n Y0r1GtInAUItUI4ewI+S4lLN20PVDk+RBdVx4ZauEiO9cOPYyaOgEVtCYcxKEim19IPe3G/njeytvK+0zK5brFnh2r/eiS/4nRAnFMQMFgDmMckFopGOCwq8fLMP+n9KBCkZScFyR16jo7mztHuyVnUe9iL6QK9BEUAVjdn2NvoWuMnAF1BivSYegYap1tS7SmFajKsfasjU7s7Ce6bKP91dpKdTfaVj0JQ1srxxxMr0apn4yPdMkwnTZgHPJ1rTuQIGEoGFMEy5KKmDavDrgdcvfD1kNZpkLOkkoIqN36t2MYz+0PuSJvHyN3O2YgYYXD38lp6FvNdtkYjmERTHsA==",
        "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=dHD+IqV5GQZFCrdY+affUuum5Pwtp7ckSrAlLsHocVM=;\n b=ABSGhCKV83rC5UCN/lcsJWGv+ohYTcaJA2NdASs/+ErSZa7QsmJTOvStF/jyoEd5cb99o9yGGBQciu2sYr1inSyZhmbF8uKj52Rk52LJcCgazuKJAlK/ocn0VZ6d5du1ANdhdY8WC5O+12p6pmSOfi40YY/c07GrHsMz6SntgZt+/R9k70yJARQzGUasIaH/WFuPK/74Ol4oipgn0nvZLQwaIRGXdEQATtnEEDJmTA0mZL/Q+EqsXnKSIS8IW/achJ7+L6CBGLxTlW7/cpv5ioHFD39bfbSlbeETzjgMUYvIyikDPJfb2O5eZEbYK2G8nT5KTDzHCzcX94oVjt/UBQ==",
        "X-ClientProxiedBy": "AM0PR04CA0128.eurprd04.prod.outlook.com\n (2603:10a6:208:55::33) To AM0PR05MB6707.eurprd05.prod.outlook.com\n (2603:10a6:20b:15b::17)",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-MS-Exchange-SenderADCheck": "1"
    },
    "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---\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..c75b1a169 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 >= 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": []
}