Show a patch.

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

{
    "id": 74537,
    "url": "https://patches.dpdk.org/api/patches/74537/",
    "web_url": "https://patches.dpdk.org/patch/74537/",
    "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": "<1595321925-26226-1-git-send-email-arybchenko@solarflare.com>",
    "date": "2020-07-21T08:58:45",
    "name": "net/sfc: avoid unnecessary actions on dummy default MAC set",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c4ce4b146847b36cec7f9c67ab31dec57fa67d1d",
    "submitter": {
        "id": 607,
        "url": "https://patches.dpdk.org/api/people/607/",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74537/mbox/",
    "series": [
        {
            "id": 11198,
            "url": "https://patches.dpdk.org/api/series/11198/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11198",
            "date": "2020-07-21T08:58:45",
            "name": "net/sfc: avoid unnecessary actions on dummy default MAC set",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11198/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74537/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74537/checks/",
    "tags": {},
    "headers": {
        "X-TMASE-MatchedRID": "DE/IChlcRtJYwMQSR3qB3XTzPL3sqyAmOYqKF7UrYh5jLp8Cm8vwFz6P\n hj6DfZCErdoLblq9S5puPjTI2GOFjdLucdA1OHpBKrDHzH6zmUWL/MoUdwG/+1IxScKXZnK0DZc\n OfsBqOI7i8zVgXoAltmHJPdY2OmlS0C1sQRfQzEHEQdG7H66TyHEqm8QYBtMOO6W8NPks1DKk5Q\n Rt8pESH/zw/0t6tzrHsCC9vhcm8vCog8kh8LWj5hQ2AZiJTp6aYzbdeQiJ+qjW+23R7XKyUFOu3\n h9OLulgHJKgEJ6iVAOry48kL3hIWBHTqXooh3g36iZzCSskvuc=",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "MIME-Version": "1.0",
        "Precedence": "list",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-TM-AS-User-Approved-Sender": "Yes",
        "X-TM-AS-User-Blocked-Sender": "No",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "X-TMASE-Result": "10--0.597400-8.000000",
        "Subject": "[dpdk-dev] [PATCH] net/sfc: avoid unnecessary actions on dummy\n\tdefault MAC set",
        "Content-Type": "text/plain",
        "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 B7CF9A0526;\n\tTue, 21 Jul 2020 10:58:54 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6A5F31BFEB;\n\tTue, 21 Jul 2020 10:58:54 +0200 (CEST)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 9F1321BFD4\n for <dev@dpdk.org>; Tue, 21 Jul 2020 10:58:52 +0200 (CEST)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.65.61])\n by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id\n 2B7AB6006E for <dev@dpdk.org>; Tue, 21 Jul 2020 08:58:52 +0000 (UTC)",
            "from us4-mdac16-20.ut7.mdlocal (unknown [10.7.65.244])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 2991C8009E\n for <dev@dpdk.org>; Tue, 21 Jul 2020 08:58:52 +0000 (UTC)",
            "from mx1-us1.ppe-hosted.com (unknown [10.7.66.41])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id B925380051\n for <dev@dpdk.org>; Tue, 21 Jul 2020 08:58:51 +0000 (UTC)",
            "from webmail.solarflare.com (uk.solarflare.com [193.34.186.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n (No client certificate requested)\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n 716A54C0064\n for <dev@dpdk.org>; Tue, 21 Jul 2020 08:58:51 +0000 (UTC)",
            "from ukex01.SolarFlarecom.com (10.17.10.4) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id\n 15.0.1497.2; Tue, 21 Jul 2020 09:58:47 +0100",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id\n 15.0.1497.2 via Frontend Transport; Tue, 21 Jul 2020 09:58:47 +0100",
            "from ukv-loginhost.uk.solarflarecom.com\n (ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 06L8wmAq032256\n for <dev@dpdk.org>; Tue, 21 Jul 2020 09:58:48 +0100",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id F2ED91617DC\n for <dev@dpdk.org>; Tue, 21 Jul 2020 09:58:47 +0100 (BST)"
        ],
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.6.1012-25554.003",
        "To": "<dev@dpdk.org>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.6.1012-25554.003",
        "Message-ID": "<1595321925-26226-1-git-send-email-arybchenko@solarflare.com>",
        "Date": "Tue, 21 Jul 2020 09:58:45 +0100",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-TM-AS-Result": "No-0.597400-8.000000-10",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "X-BeenThere": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-MDID": "1595321932-ThabaJIfpPml",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "Just an optimization to avoid extra reconfiguration when it\nis not not actually required.\n\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\n---\n drivers/net/sfc/sfc_ethdev.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c\nindex 6b3c49a284..acee3e48e4 100644\n--- a/drivers/net/sfc/sfc_ethdev.c\n+++ b/drivers/net/sfc/sfc_ethdev.c\n@@ -1030,6 +1030,9 @@ sfc_mac_addr_set(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr)\n \n \tsfc_adapter_lock(sa);\n \n+\tif (rte_is_same_ether_addr(mac_addr, &port->default_mac_addr))\n+\t\tgoto unlock;\n+\n \t/*\n \t * Copy the address to the device private data so that\n \t * it could be recalled in the case of adapter restart.\n",
    "prefixes": []
}