get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 58716,
    "url": "http://patches.dpdk.org/api/patches/58716/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190906120058.108073-6-yahui.cao@intel.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": "<20190906120058.108073-6-yahui.cao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190906120058.108073-6-yahui.cao@intel.com",
    "date": "2019-09-06T12:00:51",
    "name": "[05/12] net/ice: add FDIR mark action support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f75bdd112b39ae01669caef54d2be85cbbdf9bc1",
    "submitter": {
        "id": 1176,
        "url": "http://patches.dpdk.org/api/people/1176/?format=api",
        "name": "Cao, Yahui",
        "email": "yahui.cao@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190906120058.108073-6-yahui.cao@intel.com/mbox/",
    "series": [
        {
            "id": 6273,
            "url": "http://patches.dpdk.org/api/series/6273/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6273",
            "date": "2019-09-06T12:00:46",
            "name": "net/ice: add ice Flow Director driver",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6273/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/58716/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/58716/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 C5BC21F110;\n\tFri,  6 Sep 2019 06:16:30 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id AC84E1F0F6\n\tfor <dev@dpdk.org>; Fri,  6 Sep 2019 06:16:22 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Sep 2019 21:16:22 -0700",
            "from dpdk-yahui-skylake.sh.intel.com ([10.67.119.16])\n\tby FMSMGA003.fm.intel.com with ESMTP; 05 Sep 2019 21:16:20 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,472,1559545200\"; d=\"scan'208\";a=\"190709715\"",
        "From": "Yahui Cao <yahui.cao@intel.com>",
        "To": "Qiming Yang <qiming.yang@intel.com>,\n\tWenzhuo Lu <wenzhuo.lu@intel.com>",
        "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n\tXiaolong Ye <xiaolong.ye@intel.com>,\n\tBeilei Xing <beilei.xing@intel.com>, Yahui Cao <yahui.cao@intel.com>",
        "Date": "Fri,  6 Sep 2019 20:00:51 +0800",
        "Message-Id": "<20190906120058.108073-6-yahui.cao@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190906120058.108073-1-yahui.cao@intel.com>",
        "References": "<20190906120058.108073-1-yahui.cao@intel.com>",
        "Subject": "[dpdk-dev] [dpdk-dev 05/12] net/ice: add FDIR mark action support",
        "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": "FDIR will add mark id in the packet mbuf when flow rule hits.\n\nSigned-off-by: Yahui Cao <yahui.cao@intel.com>\n---\n drivers/net/ice/ice_fdir_filter.c | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c\nindex 98bc1be49..294678075 100644\n--- a/drivers/net/ice/ice_fdir_filter.c\n+++ b/drivers/net/ice/ice_fdir_filter.c\n@@ -577,7 +577,9 @@ ice_fdir_parse_action(struct ice_adapter *ad,\n {\n \tstruct ice_pf *pf = &ad->pf;\n \tconst struct rte_flow_action_queue *act_q;\n+\tconst struct rte_flow_action_mark *mark_spec = NULL;\n \tuint32_t dest_num = 0;\n+\tuint32_t mark_num = 0;\n \n \tfor (; actions->type != RTE_FLOW_ACTION_TYPE_END; actions++) {\n \t\tswitch (actions->type) {\n@@ -611,6 +613,12 @@ ice_fdir_parse_action(struct ice_adapter *ad,\n \t\t\t\tICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_QINDEX;\n \t\t\tfilter->input.q_index = 0;\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ACTION_TYPE_MARK:\n+\t\t\tmark_num++;\n+\n+\t\t\tmark_spec = actions->conf;\n+\t\t\tfilter->input.fltr_id = mark_spec->id;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\trte_flow_error_set(error, EINVAL,\n \t\t\t\t   RTE_FLOW_ERROR_TYPE_ACTION, actions,\n@@ -626,6 +634,13 @@ ice_fdir_parse_action(struct ice_adapter *ad,\n \t\treturn -rte_errno;\n \t}\n \n+\tif (mark_num >= 2) {\n+\t\trte_flow_error_set(error, EINVAL,\n+\t\t\t   RTE_FLOW_ERROR_TYPE_ACTION, actions,\n+\t\t\t   \"Too many mark actions\");\n+\t\treturn -rte_errno;\n+\t}\n+\n \treturn 0;\n }\n \n",
    "prefixes": [
        "05/12"
    ]
}