get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44325,
    "url": "https://patches.dpdk.org/api/patches/44325/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1536232479-38769-1-git-send-email-kirill.rybalchenko@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1536232479-38769-1-git-send-email-kirill.rybalchenko@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1536232479-38769-1-git-send-email-kirill.rybalchenko@intel.com",
    "date": "2018-09-06T11:14:39",
    "name": "net/i40e/base: add new TR bits used for cloud filters",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8cab5a46d346f5bf290596141edfa7421f06899a",
    "submitter": {
        "id": 773,
        "url": "https://patches.dpdk.org/api/people/773/?format=api",
        "name": "Rybalchenko, Kirill",
        "email": "kirill.rybalchenko@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1536232479-38769-1-git-send-email-kirill.rybalchenko@intel.com/mbox/",
    "series": [
        {
            "id": 1205,
            "url": "https://patches.dpdk.org/api/series/1205/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1205",
            "date": "2018-09-06T11:14:39",
            "name": "net/i40e/base: add new TR bits used for cloud filters",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1205/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/44325/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/44325/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 62AF7326C;\n\tThu,  6 Sep 2018 13:12:56 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 333E7325F;\n\tThu,  6 Sep 2018 13:12:54 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Sep 2018 04:12:53 -0700",
            "from silpixa00389036.ir.intel.com (HELO\n\tsilpixa00389036.ger.corp.intel.com) ([10.237.222.33])\n\tby fmsmga006.fm.intel.com with ESMTP; 06 Sep 2018 04:12:51 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,337,1531810800\"; d=\"scan'208\";a=\"261212620\"",
        "From": "Kirill Rybalchenko <kirill.rybalchenko@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "kirill.rybalchenko@intel.com, andrey.chilikin@intel.com,\n\tbeilei.xing@intel.com, qi.z.zhang@intel.com,\n\tpaul.m.stillwell.jr@intel.com, stable@dpdk.org",
        "Date": "Thu,  6 Sep 2018 12:14:39 +0100",
        "Message-Id": "<1536232479-38769-1-git-send-email-kirill.rybalchenko@intel.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "Subject": "[dpdk-dev] [PATCH] net/i40e/base: add new TR bits used for cloud\n\tfilters",
        "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": "There is a new set of TR bits that can be used when replacing\nthe cloud filters so add them in. Also added a check to make\nsure that the replace cloud filters AQ command doesn't get\nexecuted on an X722 since it is not supported there.\n\nFixes: de2cd512b176 (\"net/i40e/base: new AQ commands for cloud filter\")\nCc: stable@dpdk.org\n\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Andrey Chilikin <andrey.chilikin@intel.com>\nSigned-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>\n---\n drivers/net/i40e/base/i40e_adminq_cmd.h | 3 ++-\n drivers/net/i40e/base/i40e_common.c     | 9 +++++++++\n 2 files changed, 11 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex 801c0ff..8ae97f6 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -1501,7 +1501,8 @@ struct i40e_aqc_replace_cloud_filters_cmd {\n \tu8\told_filter_type;\n \tu8\tnew_filter_type;\n \tu8\ttr_bit;\n-\tu8\treserved[4];\n+\tu8\ttr_bit2;\n+\tu8\treserved[3];\n \t__le32 addr_high;\n \t__le32 addr_low;\n };\ndiff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex e0a5be1..2c5dd2c 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -5916,6 +5916,14 @@ i40e_status_code i40e_aq_replace_cloud_filters(struct i40e_hw *hw,\n \tenum i40e_status_code status = I40E_SUCCESS;\n \tint i = 0;\n \n+\t/* X722 doesn't support this command */\n+\tif (hw->mac.type == I40E_MAC_X722)\n+\t\treturn I40E_ERR_DEVICE_NOT_SUPPORTED;\n+\n+\t/* need FW version greater than 6.00 */\n+\tif (hw->aq.fw_maj_ver < 6)\n+\t\treturn I40E_NOT_SUPPORTED;\n+\n \ti40e_fill_default_direct_cmd_desc(&desc,\n \t\t\t\t\t  i40e_aqc_opc_replace_cloud_filters);\n \n@@ -5925,6 +5933,7 @@ i40e_status_code i40e_aq_replace_cloud_filters(struct i40e_hw *hw,\n \tcmd->new_filter_type = filters->new_filter_type;\n \tcmd->valid_flags = filters->valid_flags;\n \tcmd->tr_bit = filters->tr_bit;\n+\tcmd->tr_bit2 = filters->tr_bit2;\n \n \tstatus = i40e_asq_send_command(hw, &desc, cmd_buf,\n \t\tsizeof(struct i40e_aqc_replace_cloud_filters_cmd_buf),  NULL);\n",
    "prefixes": []
}