get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109923,
    "url": "http://patches.dpdk.org/api/patches/109923/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220421111403.1334288-3-kevinx.liu@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": "<20220421111403.1334288-3-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220421111403.1334288-3-kevinx.liu@intel.com",
    "date": "2022-04-21T11:13:53",
    "name": "[v5,02/12] net/ice: enable RSS HASH ops for DCF hardware",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "73149a8dee8fe487636fbcb69342dcbbafbc3c44",
    "submitter": {
        "id": 2440,
        "url": "http://patches.dpdk.org/api/people/2440/?format=api",
        "name": "Kevin Liu",
        "email": "kevinx.liu@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/20220421111403.1334288-3-kevinx.liu@intel.com/mbox/",
    "series": [
        {
            "id": 22576,
            "url": "http://patches.dpdk.org/api/series/22576/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22576",
            "date": "2022-04-21T11:13:52",
            "name": "complete common VF features for DCF",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/22576/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/109923/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/109923/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A8868A00C3;\n\tThu, 21 Apr 2022 05:16:16 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C0F82427FB;\n\tThu, 21 Apr 2022 05:16:05 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id BEAA8410E1\n for <dev@dpdk.org>; Thu, 21 Apr 2022 05:16:00 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Apr 2022 20:15:58 -0700",
            "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Apr 2022 20:15:55 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1650510961; x=1682046961;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=mrR24+g49ndVilfIC2X4RY0fJTgOXLiccIJAdDUJoA8=;\n b=QKNIsSJkUZSSrargtj+pG7YXDKzPH5D+hUzEZNLCdO94U+3iWKf8rsDG\n d5j4bmWWKHS6n0BWeloUHFOFraVJtHv0s6AeJlPxebWvOOV/lgHs8P/fC\n Xj8/uPSxzYVPBXytuddtLauKIUJ2pUkGOjbKEse3T9ek1obaJQEOY2Dtl\n Jhfhv5zbUBA+nTaggnBOh2fchNPB/BDWFjc8oFW/SjJ4FHodqSGqzvydG\n WOgA4qlOs5CdbjeumScgb8kSibVJLaQF1NbFule+YlXYXnsshOewLwdEr\n +ByM1/oOjcIA0QiWmtVfkqr6H1yinahDqJsIUx8F+2UvrvPRCTxuIxz+b Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10323\"; a=\"244804155\"",
            "E=Sophos;i=\"5.90,277,1643702400\"; d=\"scan'208\";a=\"244804155\"",
            "E=Sophos;i=\"5.90,277,1643702400\"; d=\"scan'208\";a=\"555535353\""
        ],
        "From": "Kevin Liu <kevinx.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com,\n Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH v5 02/12] net/ice: enable RSS HASH ops for DCF hardware",
        "Date": "Thu, 21 Apr 2022 11:13:53 +0000",
        "Message-Id": "<20220421111403.1334288-3-kevinx.liu@intel.com>",
        "X-Mailer": "git-send-email 2.33.1",
        "In-Reply-To": "<20220421111403.1334288-1-kevinx.liu@intel.com>",
        "References": "<20220419154614.476154-1-kevinx.liu@intel.com>\n <20220421111403.1334288-1-kevinx.liu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: Steve Yang <stevex.yang@intel.com>\n\nRSS HASH should be updated and queried by application,\nAdd related ops ('.rss_hash_update', '.rss_hash_conf_get') for DCF.\n\nBecause DCF doesn't support configure RSS HASH, only HASH key can be\nupdated within ops '.rss_hash_update'.\n\nSigned-off-by: Steve Yang <stevex.yang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_dcf.c        |  2 +-\n drivers/net/ice/ice_dcf.h        |  1 +\n drivers/net/ice/ice_dcf_ethdev.c | 51 ++++++++++++++++++++++++++++++++\n 3 files changed, 53 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c\nindex 070d1b71ac..89c0203ba3 100644\n--- a/drivers/net/ice/ice_dcf.c\n+++ b/drivers/net/ice/ice_dcf.c\n@@ -758,7 +758,7 @@ ice_dcf_uninit_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n \thw->ets_config = NULL;\n }\n \n-static int\n+int\n ice_dcf_configure_rss_key(struct ice_dcf_hw *hw)\n {\n \tstruct virtchnl_rss_key *rss_key;\ndiff --git a/drivers/net/ice/ice_dcf.h b/drivers/net/ice/ice_dcf.h\nindex b2c6aa2684..f0b45af5ae 100644\n--- a/drivers/net/ice/ice_dcf.h\n+++ b/drivers/net/ice/ice_dcf.h\n@@ -122,6 +122,7 @@ int ice_dcf_send_aq_cmd(void *dcf_hw, struct ice_aq_desc *desc,\n int ice_dcf_handle_vsi_update_event(struct ice_dcf_hw *hw);\n int ice_dcf_init_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw);\n void ice_dcf_uninit_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw);\n+int ice_dcf_configure_rss_key(struct ice_dcf_hw *hw);\n int ice_dcf_configure_rss_lut(struct ice_dcf_hw *hw);\n int ice_dcf_init_rss(struct ice_dcf_hw *hw);\n int ice_dcf_configure_queues(struct ice_dcf_hw *hw);\ndiff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex 1ac66ed990..ccad7fc304 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -836,6 +836,55 @@ ice_dcf_dev_rss_reta_query(struct rte_eth_dev *dev,\n \treturn 0;\n }\n \n+static int\n+ice_dcf_dev_rss_hash_update(struct rte_eth_dev *dev,\n+\t\t\tstruct rte_eth_rss_conf *rss_conf)\n+{\n+\tstruct ice_dcf_adapter *adapter = dev->data->dev_private;\n+\tstruct ice_dcf_hw *hw = &adapter->real_hw;\n+\n+\tif (!(hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RSS_PF))\n+\t\treturn -ENOTSUP;\n+\n+\t/* HENA setting, it is enabled by default, no change */\n+\tif (!rss_conf->rss_key || rss_conf->rss_key_len == 0) {\n+\t\tPMD_DRV_LOG(DEBUG, \"No key to be configured\");\n+\t\treturn 0;\n+\t} else if (rss_conf->rss_key_len != hw->vf_res->rss_key_size) {\n+\t\tPMD_DRV_LOG(ERR, \"The size of hash key configured \"\n+\t\t\t\"(%d) doesn't match the size of hardware can \"\n+\t\t\t\"support (%d)\", rss_conf->rss_key_len,\n+\t\t\thw->vf_res->rss_key_size);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\trte_memcpy(hw->rss_key, rss_conf->rss_key, rss_conf->rss_key_len);\n+\n+\treturn ice_dcf_configure_rss_key(hw);\n+}\n+\n+static int\n+ice_dcf_dev_rss_hash_conf_get(struct rte_eth_dev *dev,\n+\t\t\t  struct rte_eth_rss_conf *rss_conf)\n+{\n+\tstruct ice_dcf_adapter *adapter = dev->data->dev_private;\n+\tstruct ice_dcf_hw *hw = &adapter->real_hw;\n+\n+\tif (!(hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RSS_PF))\n+\t\treturn -ENOTSUP;\n+\n+\t/* Just set it to default value now. */\n+\trss_conf->rss_hf = ICE_RSS_OFFLOAD_ALL;\n+\n+\tif (!rss_conf->rss_key)\n+\t\treturn 0;\n+\n+\trss_conf->rss_key_len = hw->vf_res->rss_key_size;\n+\trte_memcpy(rss_conf->rss_key, hw->rss_key, rss_conf->rss_key_len);\n+\n+\treturn 0;\n+}\n+\n #define ICE_DCF_32_BIT_WIDTH (CHAR_BIT * 4)\n #define ICE_DCF_48_BIT_WIDTH (CHAR_BIT * 6)\n #define ICE_DCF_48_BIT_MASK  RTE_LEN2MASK(ICE_DCF_48_BIT_WIDTH, uint64_t)\n@@ -1184,6 +1233,8 @@ static const struct eth_dev_ops ice_dcf_eth_dev_ops = {\n \t.tm_ops_get              = ice_dcf_tm_ops_get,\n \t.reta_update             = ice_dcf_dev_rss_reta_update,\n \t.reta_query              = ice_dcf_dev_rss_reta_query,\n+\t.rss_hash_update         = ice_dcf_dev_rss_hash_update,\n+\t.rss_hash_conf_get       = ice_dcf_dev_rss_hash_conf_get,\n };\n \n static int\n",
    "prefixes": [
        "v5",
        "02/12"
    ]
}