get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818846,
    "url": "http://patchwork.ozlabs.org/api/patches/818846/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1506464764-12699-3-git-send-email-andrew@lunn.ch/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1506464764-12699-3-git-send-email-andrew@lunn.ch>",
    "list_archive_url": null,
    "date": "2017-09-26T22:25:59",
    "name": "[net-next,2/6] net: dsa: {e}dsa: set offload_fwd_mark on received packets",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a2ef45fda9a9d319aa0da7b025b2d99aced69ee8",
    "submitter": {
        "id": 13608,
        "url": "http://patchwork.ozlabs.org/api/people/13608/?format=api",
        "name": "Andrew Lunn",
        "email": "andrew@lunn.ch"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1506464764-12699-3-git-send-email-andrew@lunn.ch/mbox/",
    "series": [
        {
            "id": 5236,
            "url": "http://patchwork.ozlabs.org/api/series/5236/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5236",
            "date": "2017-09-26T22:26:00",
            "name": "mv88e6xxx broadcast flooding in hardware",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/5236/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818846/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818846/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1wbJ2j4Sz9s3T\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 08:28:44 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1031066AbdIZW2m (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 26 Sep 2017 18:28:42 -0400",
            "from vps0.lunn.ch ([185.16.172.187]:57027 \"EHLO vps0.lunn.ch\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S969562AbdIZW2l (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tTue, 26 Sep 2017 18:28:41 -0400",
            "from andrew by vps0.lunn.ch with local (Exim 4.84_2)\n\t(envelope-from <andrew@lunn.ch>)\n\tid 1dwyIq-0003JY-RX; Wed, 27 Sep 2017 00:26:08 +0200"
        ],
        "From": "Andrew Lunn <andrew@lunn.ch>",
        "To": "David Miller <davem@davemloft.net>",
        "Cc": "Vivien Didelot <vivien.didelot@savoirfairelinux.com>,\n\tnetdev <netdev@vger.kernel.org>, Andrew Lunn <andrew@lunn.ch>",
        "Subject": "[PATCH net-next 2/6] net: dsa: {e}dsa: set offload_fwd_mark on\n\treceived packets",
        "Date": "Wed, 27 Sep 2017 00:25:59 +0200",
        "Message-Id": "<1506464764-12699-3-git-send-email-andrew@lunn.ch>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1506464764-12699-1-git-send-email-andrew@lunn.ch>",
        "References": "<1506464764-12699-1-git-send-email-andrew@lunn.ch>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "The software bridge needs to know if a packet has already been bridged\nby hardware offload to ports in the same hardware offload, in order\nthat it does not re-flood them, causing duplicates. This is\nparticularly true for broadcast and multicast traffic which the host\nhas requested.\n\nBy setting offload_fwd_mark in the skb the bridge will only flood to\nports in other offloads and other netifs. Set this flag in the DSA and\nEDSA tag driver.\n\nSigned-off-by: Andrew Lunn <andrew@lunn.ch>\n---\n\nv2\n--\nFor the moment, do this in the tag drivers, not the generic code.\nOnce we get more test results from other switches, maybe move it back\nagain.\n---\n net/dsa/tag_dsa.c  | 1 +\n net/dsa/tag_edsa.c | 1 +\n 2 files changed, 2 insertions(+)",
    "diff": "diff --git a/net/dsa/tag_dsa.c b/net/dsa/tag_dsa.c\nindex fbf9ca954773..ea6ada9d5016 100644\n--- a/net/dsa/tag_dsa.c\n+++ b/net/dsa/tag_dsa.c\n@@ -154,6 +154,7 @@ static struct sk_buff *dsa_rcv(struct sk_buff *skb, struct net_device *dev,\n \t}\n \n \tskb->dev = ds->ports[source_port].netdev;\n+\tskb->offload_fwd_mark = 1;\n \n \treturn skb;\n }\ndiff --git a/net/dsa/tag_edsa.c b/net/dsa/tag_edsa.c\nindex 76367ba1b2e2..a961b22a7018 100644\n--- a/net/dsa/tag_edsa.c\n+++ b/net/dsa/tag_edsa.c\n@@ -173,6 +173,7 @@ static struct sk_buff *edsa_rcv(struct sk_buff *skb, struct net_device *dev,\n \t}\n \n \tskb->dev = ds->ports[source_port].netdev;\n+\tskb->offload_fwd_mark = 1;\n \n \treturn skb;\n }\n",
    "prefixes": [
        "net-next",
        "2/6"
    ]
}