get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 57936,
    "url": "https://patches.dpdk.org/api/patches/57936/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190826105105.19121-36-qi.z.zhang@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": "<20190826105105.19121-36-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190826105105.19121-36-qi.z.zhang@intel.com",
    "date": "2019-08-26T10:50:37",
    "name": "[35/63] net/ice/base: add function to configure Tx AQ command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f33e587f2972112bcfec4b222137f6b454817c1e",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@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/20190826105105.19121-36-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 6119,
            "url": "https://patches.dpdk.org/api/series/6119/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6119",
            "date": "2019-08-26T10:50:02",
            "name": "net/ice/base: update base code",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/6119/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/57936/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/57936/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 605331C1C0;\n\tMon, 26 Aug 2019 12:50:40 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 491AA1BF82\n\tfor <dev@dpdk.org>; Mon, 26 Aug 2019 12:49:29 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Aug 2019 03:49:29 -0700",
            "from dpdk51.sh.intel.com ([10.67.110.245])\n\tby orsmga003.jf.intel.com with ESMTP; 26 Aug 2019 03:49:27 -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,431,1559545200\"; d=\"scan'208\";a=\"182402327\"",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "wenzhuo.lu@intel.com,\n\tqiming.yang@intel.com",
        "Cc": "dev@dpdk.org, xiaolong.ye@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n\tBen Shelton <benjamin.h.shelton@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>",
        "Date": "Mon, 26 Aug 2019 18:50:37 +0800",
        "Message-Id": "<20190826105105.19121-36-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20190826105105.19121-1-qi.z.zhang@intel.com>",
        "References": "<20190826105105.19121-1-qi.z.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 35/63] net/ice/base: add function to configure Tx\n\tAQ command",
        "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": "This function is needed by the driver to move PSM leaf nodes to a new\nparent.\n\nAdditionally, add struct ice_aqc_move_txqs to struct ice_aq_desc so\ndriver code can access it.\n\nSigned-off-by: Ben Shelton <benjamin.h.shelton@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_adminq_cmd.h |  1 +\n drivers/net/ice/base/ice_common.c     | 71 +++++++++++++++++++++++++++++++++++\n drivers/net/ice/base/ice_common.h     |  6 +++\n 3 files changed, 78 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h\nindex b9e3bd5fa..9a063592f 100644\n--- a/drivers/net/ice/base/ice_adminq_cmd.h\n+++ b/drivers/net/ice/base/ice_adminq_cmd.h\n@@ -2292,6 +2292,7 @@ struct ice_aq_desc {\n \t\tstruct ice_aqc_clear_fd_table clear_fd_table;\n \t\tstruct ice_aqc_add_txqs add_txqs;\n \t\tstruct ice_aqc_dis_txqs dis_txqs;\n+\t\tstruct ice_aqc_move_txqs move_txqs;\n \t\tstruct ice_aqc_txqs_cleanup txqs_cleanup;\n \t\tstruct ice_aqc_add_get_update_free_vsi vsi_cmd;\n \t\tstruct ice_aqc_add_update_free_vsi_resp add_update_free_vsi_res;\ndiff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c\nindex e19ce733c..c2d4f1f05 100644\n--- a/drivers/net/ice/base/ice_common.c\n+++ b/drivers/net/ice/base/ice_common.c\n@@ -3415,6 +3415,77 @@ ice_aq_dis_lan_txq(struct ice_hw *hw, u8 num_qgrps,\n \treturn status;\n }\n \n+/**\n+ * ice_aq_move_recfg_lan_txq\n+ * @hw: pointer to the hardware structure\n+ * @num_qs: number of queues to move/reconfigure\n+ * @is_move: true if this operation involves node movement\n+ * @is_tc_change: true if this operation involves a TC change\n+ * @subseq_call: true if this operation is a subsequent call\n+ * @flush_pipe: on timeout, true to flush pipe, false to return EAGAIN\n+ * @timeout: timeout in units of 100 usec (valid values 0-50)\n+ * @blocked_cgds: out param, bitmap of CGDs that timed out if returning EAGAIN\n+ * @buf: struct containing src/dest TEID and per-queue info\n+ * @buf_size: size of buffer for indirect command\n+ * @txqs_moved: out param, number of queues successfully moved\n+ * @cd: pointer to command details structure or NULL\n+ *\n+ * Move / Reconfigure Tx LAN queues (0x0C32)\n+ */\n+enum ice_status\n+ice_aq_move_recfg_lan_txq(struct ice_hw *hw, u8 num_qs, bool is_move,\n+\t\t\t  bool is_tc_change, bool subseq_call, bool flush_pipe,\n+\t\t\t  u8 timeout, u32 *blocked_cgds,\n+\t\t\t  struct ice_aqc_move_txqs_data *buf, u16 buf_size,\n+\t\t\t  u8 *txqs_moved, struct ice_sq_cd *cd)\n+{\n+\tstruct ice_aqc_move_txqs *cmd;\n+\tstruct ice_aq_desc desc;\n+\tenum ice_status status;\n+\n+\tcmd = &desc.params.move_txqs;\n+\tice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_move_recfg_txqs);\n+\n+#define ICE_LAN_TXQ_MOVE_TIMEOUT_MAX 50\n+\tif (timeout > ICE_LAN_TXQ_MOVE_TIMEOUT_MAX)\n+\t\treturn ICE_ERR_PARAM;\n+\n+\tif (is_tc_change && !flush_pipe && !blocked_cgds)\n+\t\treturn ICE_ERR_PARAM;\n+\n+\tif (!is_move && !is_tc_change)\n+\t\treturn ICE_ERR_PARAM;\n+\n+\tdesc.flags |= CPU_TO_LE16(ICE_AQ_FLAG_RD);\n+\n+\tif (is_move)\n+\t\tcmd->cmd_type |= ICE_AQC_Q_CMD_TYPE_MOVE;\n+\n+\tif (is_tc_change)\n+\t\tcmd->cmd_type |= ICE_AQC_Q_CMD_TYPE_TC_CHANGE;\n+\n+\tif (subseq_call)\n+\t\tcmd->cmd_type |= ICE_AQC_Q_CMD_SUBSEQ_CALL;\n+\n+\tif (flush_pipe)\n+\t\tcmd->cmd_type |= ICE_AQC_Q_CMD_FLUSH_PIPE;\n+\n+\tcmd->num_qs = num_qs;\n+\tcmd->timeout = ((timeout << ICE_AQC_Q_CMD_TIMEOUT_S) &\n+\t\t\tICE_AQC_Q_CMD_TIMEOUT_M);\n+\n+\tstatus = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd);\n+\n+\tif (!status && txqs_moved)\n+\t\t*txqs_moved = cmd->num_qs;\n+\n+\tif (hw->adminq.sq_last_status == ICE_AQ_RC_EAGAIN &&\n+\t    is_tc_change && !flush_pipe)\n+\t\t*blocked_cgds = LE32_TO_CPU(cmd->blocked_cgds);\n+\n+\treturn status;\n+}\n+\n \n /* End of FW Admin Queue command wrappers */\n \ndiff --git a/drivers/net/ice/base/ice_common.h b/drivers/net/ice/base/ice_common.h\nindex 67adc9c59..c42c58670 100644\n--- a/drivers/net/ice/base/ice_common.h\n+++ b/drivers/net/ice/base/ice_common.h\n@@ -106,6 +106,12 @@ enum ice_status\n ice_aq_add_lan_txq(struct ice_hw *hw, u8 count,\n \t\t   struct ice_aqc_add_tx_qgrp *qg_list, u16 buf_size,\n \t\t   struct ice_sq_cd *cd);\n+enum ice_status\n+ice_aq_move_recfg_lan_txq(struct ice_hw *hw, u8 num_qs, bool is_move,\n+\t\t\t  bool is_tc_change, bool subseq_call, bool flush_pipe,\n+\t\t\t  u8 timeout, u32 *blocked_cgds,\n+\t\t\t  struct ice_aqc_move_txqs_data *buf, u16 buf_size,\n+\t\t\t  u8 *txqs_moved, struct ice_sq_cd *cd);\n \n bool ice_check_sq_alive(struct ice_hw *hw, struct ice_ctl_q_info *cq);\n enum ice_status ice_aq_q_shutdown(struct ice_hw *hw, bool unloading);\n",
    "prefixes": [
        "35/63"
    ]
}