get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41397,
    "url": "http://patchwork.dpdk.org/api/patches/41397/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180622132745.3202-1-remy.horton@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20180622132745.3202-1-remy.horton@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180622132745.3202-1-remy.horton@intel.com",
    "date": "2018-06-22T13:27:45",
    "name": "[DPDK] examples/ipsec-secgw: fix use of unsupported RSS offloads",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "781b5559f367766df3de76cf7cdb4b3596162fd3",
    "submitter": {
        "id": 326,
        "url": "http://patchwork.dpdk.org/api/people/326/?format=api",
        "name": "Remy Horton",
        "email": "remy.horton@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180622132745.3202-1-remy.horton@intel.com/mbox/",
    "series": [
        {
            "id": 208,
            "url": "http://patchwork.dpdk.org/api/series/208/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=208",
            "date": "2018-06-22T13:27:45",
            "name": "[DPDK] examples/ipsec-secgw: fix use of unsupported RSS offloads",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/208/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/41397/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/41397/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7F7F71B920;\n\tFri, 22 Jun 2018 15:27:55 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id DEAC01B91C\n\tfor <dev@dpdk.org>; Fri, 22 Jun 2018 15:27:53 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Jun 2018 06:27:51 -0700",
            "from rhorton-mobl1.ger.corp.intel.com (HELO FC23.ir.intel.com)\n\t([163.33.230.75])\n\tby fmsmga004.fm.intel.com with ESMTP; 22 Jun 2018 06:27:50 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,257,1526367600\"; d=\"scan'208\";a=\"65442103\"",
        "From": "Remy Horton <remy.horton@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 22 Jun 2018 14:27:45 +0100",
        "Message-Id": "<20180622132745.3202-1-remy.horton@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "Subject": "[dpdk-dev] [DPDK] examples/ipsec-secgw: fix use of unsupported RSS\n\toffloads",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Since commit aa1a6d87f15d (\"ethdev: force RSS offload rules again\")\na check that requested RSS offloads are supported by a PMD is\nenforced, whereas in the past asking for unsupported offloads would\nnot result in an error. This patch changes the IPSec gateway sample\nso that it only requests modes that are supported rather than\nfailing to start up.\n\nFixes: d299106e8e31 (\"examples/ipsec-secgw: add IPsec sample application\")\n\nSigned-off-by: Remy Horton <remy.horton@intel.com>\n---\n examples/ipsec-secgw/ipsec-secgw.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex a5da8b2..d247d5f 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -1566,6 +1566,11 @@ port_init(uint16_t portid)\n \tif (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)\n \t\tlocal_port_conf.txmode.offloads |=\n \t\t\tDEV_TX_OFFLOAD_MBUF_FAST_FREE;\n+\n+\t/* Only request RSS offloads the NIC supports. */\n+\tlocal_port_conf.rx_adv_conf.rss_conf.rss_hf &=\n+\t\tdev_info.flow_type_rss_offloads;\n+\n \tret = rte_eth_dev_configure(portid, nb_rx_queue, nb_tx_queue,\n \t\t\t&local_port_conf);\n \tif (ret < 0)\n",
    "prefixes": [
        "DPDK"
    ]
}