get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71987,
    "url": "http://patches.dpdk.org/api/patches/71987/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200623023838.5608-2-ting.xu@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": "<20200623023838.5608-2-ting.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200623023838.5608-2-ting.xu@intel.com",
    "date": "2020-06-23T02:38:27",
    "name": "[v5,01/12] net/ice: init RSS and supported RXDID in DCF",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9d39e2af5ac5fae07c02fc764c5049330cfc7580",
    "submitter": {
        "id": 1363,
        "url": "http://patches.dpdk.org/api/people/1363/?format=api",
        "name": "Xu, Ting",
        "email": "ting.xu@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/20200623023838.5608-2-ting.xu@intel.com/mbox/",
    "series": [
        {
            "id": 10556,
            "url": "http://patches.dpdk.org/api/series/10556/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10556",
            "date": "2020-06-23T02:38:26",
            "name": "enable DCF datapath configuration",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/10556/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71987/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/71987/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 96A10A0350;\n\tTue, 23 Jun 2020 04:35:22 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E2E571D583;\n\tTue, 23 Jun 2020 04:35:20 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 925F81D573\n for <dev@dpdk.org>; Tue, 23 Jun 2020 04:35:16 +0200 (CEST)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2020 19:35:16 -0700",
            "from dpdk-xuting-second.sh.intel.com ([10.67.116.154])\n by orsmga003.jf.intel.com with ESMTP; 22 Jun 2020 19:35:13 -0700"
        ],
        "IronPort-SDR": [
            "\n ZPNj5OLfgRd3CR+DgTO71M3z73mIjUoKjZVrDIqfCuWPNoLdv7P1iM0mdIP1PgQ0UquOv11Myv\n eAA+t9pLKkuw==",
            "\n wIUBRN6iWz2Ty8rnIkC3uyaQFoLyik6xE+rIxN+7tpIwB4OK/tYsEbeVQ/SaPM7kCXJsoy0RBR\n mBdkkGZJ1vrg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9660\"; a=\"209128847\"",
            "E=Sophos;i=\"5.75,269,1589266800\"; d=\"scan'208\";a=\"209128847\"",
            "E=Sophos;i=\"5.75,269,1589266800\"; d=\"scan'208\";a=\"275198078\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Ting Xu <ting.xu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, qiming.yang@intel.com, jingjing.wu@intel.com,\n beilei.xing@intel.com, marko.kovacevic@intel.com, john.mcnamara@intel.com,\n Ting Xu <ting.xu@intel.com>",
        "Date": "Tue, 23 Jun 2020 10:38:27 +0800",
        "Message-Id": "<20200623023838.5608-2-ting.xu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200623023838.5608-1-ting.xu@intel.com>",
        "References": "<20200605201737.33766-1-ting.xu@intel.com>\n <20200623023838.5608-1-ting.xu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 01/12] net/ice: init RSS and supported RXDID\n\tin DCF",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Qi Zhang <qi.z.zhang@intel.com>\n\nEnable RSS parameters initialization and get the supported\nflexible descriptor RXDIDs bitmap from PF during DCF init.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nSigned-off-by: Ting Xu <ting.xu@intel.com>\n---\n drivers/net/ice/ice_dcf.c | 54 ++++++++++++++++++++++++++++++++++++++-\n drivers/net/ice/ice_dcf.h |  3 +++\n 2 files changed, 56 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c\nindex 0cd5d1bf6..93fabd5f7 100644\n--- a/drivers/net/ice/ice_dcf.c\n+++ b/drivers/net/ice/ice_dcf.c\n@@ -233,7 +233,7 @@ ice_dcf_get_vf_resource(struct ice_dcf_hw *hw)\n \n \tcaps = VIRTCHNL_VF_OFFLOAD_WB_ON_ITR | VIRTCHNL_VF_OFFLOAD_RX_POLLING |\n \t       VIRTCHNL_VF_CAP_ADV_LINK_SPEED | VIRTCHNL_VF_CAP_DCF |\n-\t       VF_BASE_MODE_OFFLOADS;\n+\t       VF_BASE_MODE_OFFLOADS | VIRTCHNL_VF_OFFLOAD_RX_FLEX_DESC;\n \n \terr = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_GET_VF_RESOURCES,\n \t\t\t\t\t  (uint8_t *)&caps, sizeof(caps));\n@@ -547,6 +547,30 @@ ice_dcf_handle_vsi_update_event(struct ice_dcf_hw *hw)\n \treturn err;\n }\n \n+static int\n+ice_dcf_get_supported_rxdid(struct ice_dcf_hw *hw)\n+{\n+\tint err;\n+\n+\terr = ice_dcf_send_cmd_req_no_irq(hw,\n+\t\t\t\t\t  VIRTCHNL_OP_GET_SUPPORTED_RXDIDS,\n+\t\t\t\t\t  NULL, 0);\n+\tif (err) {\n+\t\tPMD_INIT_LOG(ERR, \"Failed to send OP_GET_SUPPORTED_RXDIDS\");\n+\t\treturn -1;\n+\t}\n+\n+\terr = ice_dcf_recv_cmd_rsp_no_irq(hw, VIRTCHNL_OP_GET_SUPPORTED_RXDIDS,\n+\t\t\t\t\t  (uint8_t *)&hw->supported_rxdid,\n+\t\t\t\t\t  sizeof(uint64_t), NULL);\n+\tif (err) {\n+\t\tPMD_INIT_LOG(ERR, \"Failed to get response of OP_GET_SUPPORTED_RXDIDS\");\n+\t\treturn -1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n int\n ice_dcf_init_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n {\n@@ -620,6 +644,29 @@ ice_dcf_init_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n \t\tgoto err_alloc;\n \t}\n \n+\t/* Allocate memory for RSS info */\n+\tif (hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RSS_PF) {\n+\t\thw->rss_key = rte_zmalloc(NULL,\n+\t\t\t\t\t  hw->vf_res->rss_key_size, 0);\n+\t\tif (!hw->rss_key) {\n+\t\t\tPMD_INIT_LOG(ERR, \"unable to allocate rss_key memory\");\n+\t\t\tgoto err_alloc;\n+\t\t}\n+\t\thw->rss_lut = rte_zmalloc(\"rss_lut\",\n+\t\t\t\t\t  hw->vf_res->rss_lut_size, 0);\n+\t\tif (!hw->rss_lut) {\n+\t\t\tPMD_INIT_LOG(ERR, \"unable to allocate rss_lut memory\");\n+\t\t\tgoto err_rss;\n+\t\t}\n+\t}\n+\n+\tif (hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RX_FLEX_DESC) {\n+\t\tif (ice_dcf_get_supported_rxdid(hw) != 0) {\n+\t\t\tPMD_INIT_LOG(ERR, \"failed to do get supported rxdid\");\n+\t\t\tgoto err_rss;\n+\t\t}\n+\t}\n+\n \thw->eth_dev = eth_dev;\n \trte_intr_callback_register(&pci_dev->intr_handle,\n \t\t\t\t   ice_dcf_dev_interrupt_handler, hw);\n@@ -628,6 +675,9 @@ ice_dcf_init_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n \n \treturn 0;\n \n+err_rss:\n+\trte_free(hw->rss_key);\n+\trte_free(hw->rss_lut);\n err_alloc:\n \trte_free(hw->vf_res);\n err_api:\n@@ -655,4 +705,6 @@ ice_dcf_uninit_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n \trte_free(hw->arq_buf);\n \trte_free(hw->vf_vsi_map);\n \trte_free(hw->vf_res);\n+\trte_free(hw->rss_lut);\n+\trte_free(hw->rss_key);\n }\ndiff --git a/drivers/net/ice/ice_dcf.h b/drivers/net/ice/ice_dcf.h\nindex d2e447b48..152266e3c 100644\n--- a/drivers/net/ice/ice_dcf.h\n+++ b/drivers/net/ice/ice_dcf.h\n@@ -50,6 +50,9 @@ struct ice_dcf_hw {\n \tuint16_t vsi_id;\n \n \tstruct rte_eth_dev *eth_dev;\n+\tuint8_t *rss_lut;\n+\tuint8_t *rss_key;\n+\tuint64_t supported_rxdid;\n };\n \n int ice_dcf_execute_virtchnl_cmd(struct ice_dcf_hw *hw,\n",
    "prefixes": [
        "v5",
        "01/12"
    ]
}