get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1559100,
    "url": "http://patchwork.ozlabs.org/api/patches/1559100/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/MEYP282MB330229B6E19056EE4B81064DCD619@MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<MEYP282MB330229B6E19056EE4B81064DCD619@MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM>",
    "list_archive_url": null,
    "date": "2021-11-24T13:32:41",
    "name": "[ovs-dev,v3] netdev-vport : Fix userspace tunnel ioctl(SIOCGIFINDEX) info logs.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "afb730618fded2daf3fb58a82c13d1a6cc42d7cb",
    "submitter": {
        "id": 81767,
        "url": "http://patchwork.ozlabs.org/api/people/81767/",
        "name": "lin huang",
        "email": "miterv@outlook.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/MEYP282MB330229B6E19056EE4B81064DCD619@MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM/mbox/",
    "series": [
        {
            "id": 273604,
            "url": "http://patchwork.ozlabs.org/api/series/273604/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=273604",
            "date": "2021-11-24T13:32:41",
            "name": "[ovs-dev,v3] netdev-vport : Fix userspace tunnel ioctl(SIOCGIFINDEX) info logs.",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/273604/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1559100/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/1559100/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "bilbo.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256\n header.s=selector1 header.b=aeaToM7L;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp4.osuosl.org (amavisd-new);\n dkim=pass (2048-bit key) header.d=outlook.com"
        ],
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4HzhlW2xQ6z9sRN\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Nov 2021 00:32:55 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 8DCBC4046B;\n\tWed, 24 Nov 2021 13:32:52 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id lfage5mTVw6C; Wed, 24 Nov 2021 13:32:51 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 701F34044D;\n\tWed, 24 Nov 2021 13:32:50 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 069AEC001E;\n\tWed, 24 Nov 2021 13:32:50 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id F41CDC0012\n for <dev@openvswitch.org>; Wed, 24 Nov 2021 13:32:48 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id C93D240557\n for <dev@openvswitch.org>; Wed, 24 Nov 2021 13:32:48 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id cC4wu7ov_sGS for <dev@openvswitch.org>;\n Wed, 24 Nov 2021 13:32:47 +0000 (UTC)",
            "from AUS01-SY4-obe.outbound.protection.outlook.com\n (mail-sy4aus01olkn20826.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:7005::826])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 871F14054A\n for <dev@openvswitch.org>; Wed, 24 Nov 2021 13:32:47 +0000 (UTC)",
            "from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:15b::24)\n by MEYP282MB2816.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:155::5) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.22; Wed, 24 Nov\n 2021 13:32:41 +0000",
            "from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM\n ([fe80::31f7:780a:9782:eddb]) by MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM\n ([fe80::31f7:780a:9782:eddb%9]) with mapi id 15.20.4713.027; Wed, 24 Nov 2021\n 13:32:41 +0000"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "whitelisted by SQLgrey-1.8.0",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=c0WjsIeXGKkMu2IahvKn0EHBTyEkBtu5aO0EgVCXn1V2hAkql22hquyxz5cW5TpdVcmvC+lnQu5sYhSf8HNi43XyQ+kFqLc4Sj2v5GLpDb9F7rixBlj3Cp78mgU7YoaOwyibQgKyU/QQTDSXBMGnBaIu0qKwGqMfEdnCxR9SQaaAfZz73l/a2TUwylj0+tZs7HLOez5ClBpdb4j0TkXNRFP4RCR0qcHpJSX/WRRmH2DA+GYj6n5Jrxyc/bM27ny6P1UTbzkoYfcGAWKhruNTpeTKueT/yDT44BFe2tsdoJaazHrbRGUOeMsPm6LSVRjToJ6OoNAROtw7RQFnqARwrQ==",
        "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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=zGCF1z6WfWJZAwwU0mC5L/+pewj8HrtAvj2wDYQpDso=;\n b=gE9VWKjM28dwI8abFDHFQdzZhjouEGrgCvgkGTuA+vAgcvWJKtNHQ5NetZOy6G5Fy715GqxsdaDJJCiaSHx6y7pCdFIBtsJI8QIT/+I/uIL4fV5urfSFxbZYIwZ2xqALPvwmbvW9p3rgXV2eH48/M7KTybBPSEYj9evO7V+8SSs22BlE7CBmqr7mdliQ9BHLcSHQ0oH06VQKScS+184Q/PE4jHJ64WeWAZVzlzTKK4jNNzYWremDpvU+pEllr6QX9zn2HGklli7DYyVj1xI5EyDhrcH7TRcsRIjsn5G+G4ovzB8dmUcf2delK5q/qS9marD4iy/nIXUhKzggcM2/hA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=none; dmarc=none;\n dkim=none; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=zGCF1z6WfWJZAwwU0mC5L/+pewj8HrtAvj2wDYQpDso=;\n b=aeaToM7LCqg3D5jylRYfXnk4I2zjdX3mU6mut1NGLQgyjybcEl5StBEcC3eFdxjLTVC/4Lm3QyWcEJqM/H12+yWZ6v4wpWCoCeEK0NBUuWPlLB/wMA3GmwaQnqFjqPi5akwNwZrawujqONYaaVnS57kEaY5SW1t5zBjGjgBy7AnZHU4hDjllfASa7T+BbNh2umKUHGJNRNBm4e7E7pqE0/7q61QuBiUhDoG0vWM5CO797tHT80oUaXv4y/4JPzCBVIl0kGOJjqX4g3sYHy6IuF5wxrCvuWnK8hnVmFUUaNAjxhs5E3jMZQTdAhghOgNwylqlvI5tJGwudz3W6PCIRg==",
        "From": "lin huang <miterv@outlook.com>",
        "To": "\"dev@openvswitch.org\" <dev@openvswitch.org>",
        "Thread-Topic": "[PATCH v3] netdev-vport : Fix userspace tunnel\n ioctl(SIOCGIFINDEX) info logs.",
        "Thread-Index": "AQHX4TMIgbIsgv93YUWKYmxdLqtDJQ==",
        "Date": "Wed, 24 Nov 2021 13:32:41 +0000",
        "Message-ID": "\n <MEYP282MB330229B6E19056EE4B81064DCD619@MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM>",
        "Accept-Language": "zh-CN, en-US",
        "Content-Language": "zh-CN",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "suggested_attachment_session_id": "ddaec516-49fe-0e62-dd56-2608651f8b72",
        "x-tmn": "[huvNqTO6xEi5lPHnOcPe5H1w0OuffLFhcbQX0b4BjnWHE8L6Pe/F3ajwtP4z6Erx]",
        "x-ms-publictraffictype": "Email",
        "x-ms-office365-filtering-correlation-id": "c07c3f91-ab61-4426-68f6-08d9af4ee414",
        "x-ms-traffictypediagnostic": "MEYP282MB2816:",
        "x-microsoft-antispam": "BCL:0;",
        "x-microsoft-antispam-message-info": "\n bKeSqxiZ5kuoMARlLZcn/IPz6keUuSdxH25lm00ieVxkiwb9iTMvhboGev6frgUnqKxfSlyCHaXbkYr4aq1Zrr8Cc+pJn1LWADU4/89s2sIuAswqJfgjiKry+YQYqejnuhXgjaP4//1wjHiCw6qFwmUALLIEuThgrgGu12NwDGqWVaUDKMq5khisPHKub2cwvaz486AItYcXIA3C/MgQYwQnMmhNlgTJ0jFCDC9mPMqNoxSeRnyqqoTRBPB1h0kSu3+VKBixln9j6rBKHbW8wvJy12rpYIEvbp8Xb3b+iJyNFQTpBP11QXgQX0MezlhRjfVLFlN92QBh7dmrxk/a04S7+VCgzR9U4QGGt8rja6l5zGi4AledPSDuDRMz+HJCq5sd4eGLS/G8pcfo56Lg9L7GLju3fAncFk0v6Yn0xQWK0434bp/AiEGhqU4wJjFulachP7KhWOinoAtw0GIEXeafDW+P8oLYICMPVZ82m5rnO2qB2T5fYLmP5iKZtVNVcjjK+zlrYYhyM2/ouRmKVkqhV/UAb2QjCLZgPGmsGQGvHvGdBVMoUjC3qxRDqEdyf6xEU6TITqXC7APLPBEF/A==",
        "x-ms-exchange-antispam-messagedata-chunkcount": "1",
        "x-ms-exchange-antispam-messagedata-0": "\n /V2ZukvcteBDvRtaWalflCc/C538Br8i/OcEDXMqSQ4wxEF6Ivb9HAZrdAY1/v+fo8vqYTGEjtSTuTdulteO/5aGicKxOO6JyRphGK3rkZa1TUogsvxFVDiva3krOrvG52HIqWTDQ9VN66cHeD9+mBZBU4QbuFq17m9BLDNB91DEaZjZuy314RYqghPWob49TA7miFqRST6/tLJDm8L2+9LAvdbY1QilY/1e+RBj+tl9jN1D//LNojZuQKI96cxWtjlwkw6kvkbCcjKeLvUP6dF3mQQpEaed/CWxSbzll92SR9bL51VwezHqjEL/a8NDLUK2ZS2soYh8OZlfpwUnhYjoL0FtC25+MmnQ1OI6Oeo6Pwr/C1HIIDievOueqoLvGezeS3ysUfRP2c/jrXuco9prnbm+nkt9DibrGFsdYNWkhELkkxTnfJiKMihuPiUITrXXPn7TGvNW0Xl4mMt+J8ZeW1djzIsit4IgWAshdgdQwd5cDAtLFag1GU38YS4MrBYHCFB3B0/z+dmGsBzpM6m7WHKCoP2MVOAwXLGLM1ghW7nL1AsS5PgkVRyk7c5HPLcX5RRyy31DBbK03Z+cEdpTOv2ymZkarmfiKRqSiBMxNiaXQpzz3wpeLNdasDzyw2cVwuV/P51cHY8ueH+UMutUZuXkIhAT8Ok8jXHRi9IV6i9TGgnzIUbIAX22W7J+xv6jGuQs6Tc/P6n+yfeQmuDS6rUl52607QDLnaKz3D9w4QtRAZuwtxQsx04qBk/6",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-AuthSource": "MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM",
        "X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg": [
            "\n 00000000-0000-0000-0000-000000000000",
            "\n 00000000-0000-0000-0000-000000000000"
        ],
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n c07c3f91-ab61-4426-68f6-08d9af4ee414",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "24 Nov 2021 13:32:41.7084 (UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa",
        "X-MS-Exchange-CrossTenant-rms-persistedconsumerorg": [
            "\n 00000000-0000-0000-0000-000000000000",
            "\n 00000000-0000-0000-0000-000000000000"
        ],
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MEYP282MB2816",
        "Cc": "\"i.maximets\" <i.maximets@ovn.org>",
        "Subject": "[ovs-dev] [PATCH v3] netdev-vport : Fix userspace tunnel\n ioctl(SIOCGIFINDEX) info logs.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "From: linhuang <linhuang@ruijie.com.cn>\n\nUserspace tunnel doesn't have a valid device in the kernel. So\nget_ifindex() function (ioctl) always get error during\nadding a port, deleting a port or updating a port status.\n\nThe info log is\n\"2021-08-29T09:17:39.830Z|00059|netdev_linux|INFO|ioctl(SIOCGIFINDEX)\non vxlan_sys_4789 device failed: No such device\"\n\nIf there are a lot of userspace tunnel ports on a bridge, the\niface_refresh_netdev_status() function will spend a lot of time.\n\nSo ignore userspace tunnel port ioctl(SIOCGIFINDEX) operation, just\nreturn -ENODEV.\n\nSigned-off-by: Lin Huang <linhuang@ruijie.com.cn>\nTest-by: Mike Pattrick <mkp@redhat.com>\nReviewed-by: Aaron Conole <aconole@redhat.com>\nReviewed-by: Ilya Maximets <i.maximets@ovn.org>\n---\n lib/netdev-vport.c | 4 +++-\n vswitchd/bridge.c  | 2 ++\n 2 files changed, 5 insertions(+), 1 deletion(-)\n\n--\n1.8.3.1",
    "diff": "diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c\nindex 499c029..f0ff02b 100644\n--- a/lib/netdev-vport.c\n+++ b/lib/netdev-vport.c\n@@ -1151,8 +1151,10 @@ netdev_vport_get_ifindex(const struct netdev *netdev_)\n {\n     char buf[NETDEV_VPORT_NAME_BUFSIZE];\n     const char *name = netdev_vport_get_dpif_port(netdev_, buf, sizeof(buf));\n+    const char *dpif_type = netdev_get_dpif_type(netdev_);\n\n-    return linux_get_ifindex(name);\n+    return (dpif_type && !strcmp(dpif_type, \"system\")\n+            ? linux_get_ifindex(name) : -ENODEV);\n }\n\n #define NETDEV_VPORT_GET_IFINDEX netdev_vport_get_ifindex\ndiff --git a/vswitchd/bridge.c b/vswitchd/bridge.c\nindex 5223aa8..513ef7e 100644\n--- a/vswitchd/bridge.c\n+++ b/vswitchd/bridge.c\n@@ -2052,6 +2052,8 @@ iface_do_create(const struct bridge *br,\n         goto error;\n     }\n\n+    netdev_set_dpif_type(netdev, br->ofproto->type);\n+\n     error = iface_set_netdev_config(iface_cfg, netdev, errp);\n     if (error) {\n         goto error;\n",
    "prefixes": [
        "ovs-dev",
        "v3"
    ]
}