get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 97615,
    "url": "http://patches.dpdk.org/api/patches/97615/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210831141713.9225-1-chenqiming_huawei@163.com/",
    "project": {
        "id": 1,
        "url": "http://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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210831141713.9225-1-chenqiming_huawei@163.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210831141713.9225-1-chenqiming_huawei@163.com",
    "date": "2021-08-31T14:17:13",
    "name": "net/ixgbe: fix vf mac remains",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "12fad75270472fd6f16f329c4a8d403734b1d791",
    "submitter": {
        "id": 2338,
        "url": "http://patches.dpdk.org/api/people/2338/?format=api",
        "name": "Qiming Chen",
        "email": "chenqiming_huawei@163.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210831141713.9225-1-chenqiming_huawei@163.com/mbox/",
    "series": [
        {
            "id": 18567,
            "url": "http://patches.dpdk.org/api/series/18567/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18567",
            "date": "2021-08-31T14:17:13",
            "name": "net/ixgbe: fix vf mac remains",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/18567/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/97615/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/97615/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 904B8A0C46;\n\tTue, 31 Aug 2021 16:18:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0B39C40141;\n\tTue, 31 Aug 2021 16:18:09 +0200 (CEST)",
            "from mail-m973.mail.163.com (mail-m973.mail.163.com [123.126.97.3])\n by mails.dpdk.org (Postfix) with ESMTP id 56D044013F;\n Tue, 31 Aug 2021 16:18:06 +0200 (CEST)",
            "from localhost.localdomain (unknown [124.160.214.152])\n by smtp3 (Coremail) with SMTP id G9xpCgBHqtIYOi5hZtcRFA--.36201S2;\n Tue, 31 Aug 2021 22:18:02 +0800 (CST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=plzwu\n L90rNk5WLX4ap87+5wluBraimcbjS2ndLVfgAo=; b=HcK7wUhXABC/J6b8LXwUG\n c12aZR8HfSWm/idf161WzNhsKwl2ETGdDjaUyEku+vhnZni2j9JJxUAUfL1djS44\n ypsWLRRIayWCmvCtK9QxO+InYQ4eGlocqYe5El1aPUZaUoX5z1MBG018rid9VcUA\n Bd9bhe51cRo/9DiSZgy0lY=",
        "From": "Qiming Chen <chenqiming_huawei@163.com>",
        "To": "dev@dpdk.org",
        "Cc": "haiyue.wang@intel.com, Qiming Chen <chenqiming_huawei@163.com>,\n stable@dpdk.org",
        "Date": "Tue, 31 Aug 2021 22:17:13 +0800",
        "Message-Id": "<20210831141713.9225-1-chenqiming_huawei@163.com>",
        "X-Mailer": "git-send-email 2.30.1.windows.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "G9xpCgBHqtIYOi5hZtcRFA--.36201S2",
        "X-Coremail-Antispam": "1Uf129KBjvJXoW7WFyfuw1DCw4fZryDGr13XFb_yoW8XF15pF\n Z7JFWrJ3WqqF4qgw4DXa1rWFy3KanYq3yUKrW8A3s0k34DAry0yrs2ga4jvr90yrW8W3W3\n AF4jyr4UGa13ZFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jm4EiUUUUU=",
        "X-Originating-IP": "[124.160.214.152]",
        "X-CM-SenderInfo": "xfkh01xlpl0w5bkxt4lhl6il2tof0z/xtbBZAAAoFQHOTuFnQAAsN",
        "Subject": "[dpdk-dev] [PATCH] net/ixgbe: fix vf mac remains",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "In the following two scenarios, the mac address residual problem\nwill occur:\n1) In the VF hard pass-through environment, after adding the mac\naddress, the process restarts, and the previously added mac is\nstill valid;\n2) In the vf hard pass-through environment, after the mac address\nis issued, the port will start/stop, and the previously added mac\nis still valid;\n\nThe patch clears the mac address at the start and stop of the vf\nport. After the start is cleared, the rte framework will restore\nthe mac addition to solve the problem of residual mac addresses.\n\nFixes: abf7275bbaa2 (\"ixgbe: move to drivers/net/\")\nCc: stable@dpdk.org\n\nSigned-off-by: Qiming Chen <chenqiming_huawei@163.com>\n---\n drivers/net/ixgbe/ixgbe_ethdev.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 6a91f104e1..e40350d86e 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -5410,6 +5410,9 @@ ixgbevf_dev_start(struct rte_eth_dev *dev)\n \t */\n \tixgbevf_dev_link_update(dev, 0);\n \n+\t/* Clear the mac address, the rte frame will be restored */\n+\tixgbevf_set_uc_addr_vf(hw, 0, NULL);\n+\n \thw->adapter_stopped = false;\n \n \treturn 0;\n@@ -5454,6 +5457,9 @@ ixgbevf_dev_stop(struct rte_eth_dev *dev)\n \t\tintr_handle->intr_vec = NULL;\n \t}\n \n+\t/* Clear the mac address */\n+\tixgbevf_set_uc_addr_vf(hw, 0, NULL);\n+\n \tadapter->rss_reta_updated = 0;\n \n \treturn 0;\n",
    "prefixes": []
}