get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54662,
    "url": "http://patches.dpdk.org/api/patches/54662/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190611155221.2703-6-leyi.rong@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": "<20190611155221.2703-6-leyi.rong@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190611155221.2703-6-leyi.rong@intel.com",
    "date": "2019-06-11T15:51:20",
    "name": "[v2,05/66] net/ice/base: add more recipe commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f8a3ce2058ba68a2cc832f1a435e8ecfe2e378ab",
    "submitter": {
        "id": 1204,
        "url": "http://patches.dpdk.org/api/people/1204/?format=api",
        "name": "Leyi Rong",
        "email": "leyi.rong@intel.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/20190611155221.2703-6-leyi.rong@intel.com/mbox/",
    "series": [
        {
            "id": 4981,
            "url": "http://patches.dpdk.org/api/series/4981/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4981",
            "date": "2019-06-11T15:51:15",
            "name": "shared code update",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4981/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54662/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54662/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 1CC841C465;\n\tTue, 11 Jun 2019 17:53:52 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id C66241C437\n\tfor <dev@dpdk.org>; Tue, 11 Jun 2019 17:53:43 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Jun 2019 08:53:43 -0700",
            "from lrong-srv-03.sh.intel.com ([10.67.119.177])\n\tby orsmga001.jf.intel.com with ESMTP; 11 Jun 2019 08:53:42 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Leyi Rong <leyi.rong@intel.com>",
        "To": "qi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>,\n\tLev Faerman <lev.faerman@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>",
        "Date": "Tue, 11 Jun 2019 23:51:20 +0800",
        "Message-Id": "<20190611155221.2703-6-leyi.rong@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190611155221.2703-1-leyi.rong@intel.com>",
        "References": "<20190604054248.68510-1-leyi.rong@intel.com>\n\t<20190611155221.2703-1-leyi.rong@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 05/66] net/ice/base: add more recipe commands",
        "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": "Add the Add Recipe (0x0290), Recipe to Profile (0x0291), Get Recipe\n(0x0292) and Get Recipe to Profile (0x0293) Commands.\n\nSigned-off-by: Lev Faerman <lev.faerman@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h | 73 +++++++++++++++++++++++++++\n 1 file changed, 73 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex bbdca83fc..7b0aa8aaa 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -696,6 +696,72 @@ struct ice_aqc_storm_cfg {\n \n #define ICE_MAX_NUM_RECIPES 64\n \n+/* Add/Get Recipe (indirect 0x0290/0x0292)*/\n+struct ice_aqc_add_get_recipe {\n+\t__le16 num_sub_recipes;\t/* Input in Add cmd, Output in Get cmd */\n+\t__le16 return_index;\t/* Input, used for Get cmd only */\n+\tu8 reserved[4];\n+\t__le32 addr_high;\n+\t__le32 addr_low;\n+};\n+\n+struct ice_aqc_recipe_content {\n+\tu8 rid;\n+#define ICE_AQ_RECIPE_ID_S\t\t0\n+#define ICE_AQ_RECIPE_ID_M\t\t(0x3F << ICE_AQ_RECIPE_ID_S)\n+#define ICE_AQ_RECIPE_ID_IS_ROOT\tBIT(7)\n+\tu8 lkup_indx[5];\n+#define ICE_AQ_RECIPE_LKUP_DATA_S\t0\n+#define ICE_AQ_RECIPE_LKUP_DATA_M\t(0x3F << ICE_AQ_RECIPE_LKUP_DATA_S)\n+#define ICE_AQ_RECIPE_LKUP_IGNORE\tBIT(7)\n+#define ICE_AQ_SW_ID_LKUP_MASK\t\t0x00FF\n+\t__le16 mask[5];\n+\tu8 result_indx;\n+#define ICE_AQ_RECIPE_RESULT_DATA_S\t0\n+#define ICE_AQ_RECIPE_RESULT_DATA_M\t(0x3F << ICE_AQ_RECIPE_RESULT_DATA_S)\n+#define ICE_AQ_RECIPE_RESULT_EN\t\tBIT(7)\n+\tu8 rsvd0[3];\n+\tu8 act_ctrl_join_priority;\n+\tu8 act_ctrl_fwd_priority;\n+#define ICE_AQ_RECIPE_FWD_PRIORITY_S\t0\n+#define ICE_AQ_RECIPE_FWD_PRIORITY_M\t(0xF << ICE_AQ_RECIPE_FWD_PRIORITY_S)\n+\tu8 act_ctrl;\n+#define ICE_AQ_RECIPE_ACT_NEED_PASS_L2\tBIT(0)\n+#define ICE_AQ_RECIPE_ACT_ALLOW_PASS_L2\tBIT(1)\n+#define ICE_AQ_RECIPE_ACT_INV_ACT\tBIT(2)\n+#define ICE_AQ_RECIPE_ACT_PRUNE_INDX_S\t4\n+#define ICE_AQ_RECIPE_ACT_PRUNE_INDX_M\t(0x3 << ICE_AQ_RECIPE_ACT_PRUNE_INDX_S)\n+\tu8 rsvd1;\n+\t__le32 dflt_act;\n+#define ICE_AQ_RECIPE_DFLT_ACT_S\t0\n+#define ICE_AQ_RECIPE_DFLT_ACT_M\t(0x7FFFF << ICE_AQ_RECIPE_DFLT_ACT_S)\n+#define ICE_AQ_RECIPE_DFLT_ACT_VALID\tBIT(31)\n+};\n+\n+struct ice_aqc_recipe_data_elem {\n+\tu8 recipe_indx;\n+\tu8 resp_bits;\n+#define ICE_AQ_RECIPE_WAS_UPDATED\tBIT(0)\n+\tu8 rsvd0[2];\n+\tu8 recipe_bitmap[8];\n+\tu8 rsvd1[4];\n+\tstruct ice_aqc_recipe_content content;\n+\tu8 rsvd2[20];\n+};\n+\n+/* This struct contains a number of entries as per the\n+ * num_sub_recipes in the command\n+ */\n+struct ice_aqc_add_get_recipe_data {\n+\tstruct ice_aqc_recipe_data_elem recipe[1];\n+};\n+\n+/* Set/Get Recipes to Profile Association (direct 0x0291/0x0293) */\n+struct ice_aqc_recipe_to_profile {\n+\t__le16 profile_id;\n+\tu8 rsvd[6];\n+\tice_declare_bitmap(recipe_assoc, ICE_MAX_NUM_RECIPES);\n+};\n \n /* Add/Update/Remove/Get switch rules (indirect 0x02A0, 0x02A1, 0x02A2, 0x02A3)\n  */\n@@ -2210,6 +2276,8 @@ struct ice_aq_desc {\n \t\tstruct ice_aqc_get_sw_cfg get_sw_conf;\n \t\tstruct ice_aqc_sw_rules sw_rules;\n \t\tstruct ice_aqc_storm_cfg storm_conf;\n+\t\tstruct ice_aqc_add_get_recipe add_get_recipe;\n+\t\tstruct ice_aqc_recipe_to_profile recipe_to_profile;\n \t\tstruct ice_aqc_get_topo get_topo;\n \t\tstruct ice_aqc_sched_elem_cmd sched_elem_cmd;\n \t\tstruct ice_aqc_query_txsched_res query_sched_res;\n@@ -2369,6 +2437,11 @@ enum ice_adminq_opc {\n \tice_aqc_opc_set_storm_cfg\t\t\t= 0x0280,\n \tice_aqc_opc_get_storm_cfg\t\t\t= 0x0281,\n \n+\t/* recipe commands */\n+\tice_aqc_opc_add_recipe\t\t\t\t= 0x0290,\n+\tice_aqc_opc_recipe_to_profile\t\t\t= 0x0291,\n+\tice_aqc_opc_get_recipe\t\t\t\t= 0x0292,\n+\tice_aqc_opc_get_recipe_to_profile\t\t= 0x0293,\n \n \t/* switch rules population commands */\n \tice_aqc_opc_add_sw_rules\t\t\t= 0x02A0,\n",
    "prefixes": [
        "v2",
        "05/66"
    ]
}