get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 609816,
    "url": "http://patchwork.ozlabs.org/api/patches/609816/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1460475052-6348-2-git-send-email-harshitha.ramamurthy@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1460475052-6348-2-git-send-email-harshitha.ramamurthy@intel.com>",
    "list_archive_url": null,
    "date": "2016-04-12T15:30:40",
    "name": "[next,S33,01/13] i40e: Add support for configuring VF RSS",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "00ceaf5db7c359a283a571d4ec0d81d281219083",
    "submitter": {
        "id": 68642,
        "url": "http://patchwork.ozlabs.org/api/people/68642/?format=api",
        "name": "Harshitha Ramamurthy",
        "email": "harshitha.ramamurthy@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1460475052-6348-2-git-send-email-harshitha.ramamurthy@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/609816/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/609816/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3ql3Jr2mGmz9t4B\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Apr 2016 09:38:04 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id B016B3303C;\n\tTue, 12 Apr 2016 23:38:03 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id aSrJgOoQd2-L; Tue, 12 Apr 2016 23:37:56 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id DB1DA332C2;\n\tTue, 12 Apr 2016 23:37:56 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 1AD301C0E44\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Apr 2016 23:37:53 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 15DFD9D422\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Apr 2016 23:37:53 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id kigGm3Gl-Mli for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Apr 2016 23:37:52 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 4A498C0017\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Apr 2016 23:37:52 +0000 (UTC)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga101.fm.intel.com with ESMTP; 12 Apr 2016 16:36:30 -0700",
            "from harshitha-linux1.jf.intel.com ([10.166.45.81])\n\tby orsmga002.jf.intel.com with ESMTP; 12 Apr 2016 16:36:29 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,476,1455004800\"; d=\"scan'208\";a=\"953677385\"",
        "From": "Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 12 Apr 2016 08:30:40 -0700",
        "Message-Id": "<1460475052-6348-2-git-send-email-harshitha.ramamurthy@intel.com>",
        "X-Mailer": "git-send-email 2.4.3",
        "In-Reply-To": "<1460475052-6348-1-git-send-email-harshitha.ramamurthy@intel.com>",
        "References": "<1460475052-6348-1-git-send-email-harshitha.ramamurthy@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S33 01/13] i40e: Add support for\n\tconfiguring VF RSS",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Mitch Williams <mitch.a.williams@intel.com>\n\nAdd support for configuring RSS on behalf of the VFs. This removes the\nburden of dealing with different hardware interfaces from the VF\ndrivers, allowing for better future compatibility.\n\nSigned-off-by: Mitch Williams <mitch.a.williams@intel.com>\nChange-ID: Icea75d3f37241ee8e447be5779e5abb53ddf04c0\n---\nTesting Hints : Use ethtool to configure RSS key and\nLUT, test traffic spreads to different queues.\n\n drivers/net/ethernet/intel/i40e/i40e.h             |   1 +\n drivers/net/ethernet/intel/i40e/i40e_main.c        |  35 +++-\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 193 ++++++++++++++++++++-\n 3 files changed, 217 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h\nindex d25b3be..e312adf 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -202,6 +202,7 @@ struct i40e_lump_tracking {\n \n #define I40E_HKEY_ARRAY_SIZE ((I40E_PFQF_HKEY_MAX_INDEX + 1) * 4)\n #define I40E_HLUT_ARRAY_SIZE ((I40E_PFQF_HLUT_MAX_INDEX + 1) * 4)\n+#define I40E_VF_HLUT_ARRAY_SIZE ((I40E_VFQF_HLUT1_MAX_INDEX + 1) * 4)\n \n enum i40e_fd_stat_idx {\n \tI40E_FD_STAT_ATR,\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex ec94ad6c..39b3b56 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -8082,24 +8082,45 @@ static int i40e_config_rss_reg(struct i40e_vsi *vsi, const u8 *seed,\n {\n \tstruct i40e_pf *pf = vsi->back;\n \tstruct i40e_hw *hw = &pf->hw;\n+\tu16 vf_id = vsi->vf_id;\n \tu8 i;\n \n \t/* Fill out hash function seed */\n \tif (seed) {\n \t\tu32 *seed_dw = (u32 *)seed;\n \n-\t\tfor (i = 0; i <= I40E_PFQF_HKEY_MAX_INDEX; i++)\n-\t\t\ti40e_write_rx_ctl(hw, I40E_PFQF_HKEY(i), seed_dw[i]);\n+\t\tif (vsi->type == I40E_VSI_MAIN) {\n+\t\t\tfor (i = 0; i <= I40E_PFQF_HKEY_MAX_INDEX; i++)\n+\t\t\t\ti40e_write_rx_ctl(hw, I40E_PFQF_HKEY(i),\n+\t\t\t\t\t\t  seed_dw[i]);\n+\t\t} else if (vsi->type == I40E_VSI_SRIOV) {\n+\t\t\tfor (i = 0; i <= I40E_VFQF_HKEY1_MAX_INDEX; i++)\n+\t\t\t\ti40e_write_rx_ctl(hw,\n+\t\t\t\t\t\t  I40E_VFQF_HKEY1(i, vf_id),\n+\t\t\t\t\t\t  seed_dw[i]);\n+\t\t} else {\n+\t\t\tdev_err(&pf->pdev->dev, \"Cannot set RSS seed - invalid VSI type\\n\");\n+\t\t}\n \t}\n \n \tif (lut) {\n \t\tu32 *lut_dw = (u32 *)lut;\n \n-\t\tif (lut_size != I40E_HLUT_ARRAY_SIZE)\n-\t\t\treturn -EINVAL;\n-\n-\t\tfor (i = 0; i <= I40E_PFQF_HLUT_MAX_INDEX; i++)\n-\t\t\twr32(hw, I40E_PFQF_HLUT(i), lut_dw[i]);\n+\t\tif (vsi->type == I40E_VSI_MAIN) {\n+\t\t\tif (lut_size != I40E_HLUT_ARRAY_SIZE)\n+\t\t\t\treturn -EINVAL;\n+\t\t\tfor (i = 0; i <= I40E_PFQF_HLUT_MAX_INDEX; i++)\n+\t\t\t\twr32(hw, I40E_PFQF_HLUT(i), lut_dw[i]);\n+\t\t} else if (vsi->type == I40E_VSI_SRIOV) {\n+\t\t\tif (lut_size != I40E_VF_HLUT_ARRAY_SIZE)\n+\t\t\t\treturn -EINVAL;\n+\t\t\tfor (i = 0; i <= I40E_VFQF_HLUT_MAX_INDEX; i++)\n+\t\t\t\ti40e_write_rx_ctl(hw,\n+\t\t\t\t\t\t  I40E_VFQF_HLUT1(i, vf_id),\n+\t\t\t\t\t\t  lut_dw[i]);\n+\t\t} else {\n+\t\t\tdev_err(&pf->pdev->dev, \"Cannot set RSS LUT - invalid VSI type\\n\");\n+\t\t}\n \t}\n \ti40e_flush(hw);\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex 30f8cbe..c364588 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -1348,12 +1348,16 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)\n \t\tset_bit(I40E_VF_STAT_IWARPENA, &vf->vf_states);\n \t}\n \n-\tif (pf->flags & I40E_FLAG_RSS_AQ_CAPABLE) {\n-\t\tif (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ)\n-\t\t\tvfres->vf_offload_flags |=\n-\t\t\t\tI40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ;\n+\tif (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF) {\n+\t\tvfres->vf_offload_flags |= I40E_VIRTCHNL_VF_OFFLOAD_RSS_PF;\n \t} else {\n-\t\tvfres->vf_offload_flags |= I40E_VIRTCHNL_VF_OFFLOAD_RSS_REG;\n+\t\tif ((pf->flags & I40E_FLAG_RSS_AQ_CAPABLE) &&\n+\t\t    (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ))\n+\t\t\tvfres->vf_offload_flags |=\n+\t\t\t\t\tI40E_VIRTCHNL_VF_OFFLOAD_RSS_AQ;\n+\t\telse\n+\t\t\tvfres->vf_offload_flags |=\n+\t\t\t\t\tI40E_VIRTCHNL_VF_OFFLOAD_RSS_REG;\n \t}\n \n \tif (pf->flags & I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE) {\n@@ -1382,6 +1386,9 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)\n \tvfres->num_vsis = num_vsis;\n \tvfres->num_queue_pairs = vf->num_queue_pairs;\n \tvfres->max_vectors = pf->hw.func_caps.num_msix_vectors_vf;\n+\tvfres->rss_key_size = I40E_HKEY_ARRAY_SIZE;\n+\tvfres->rss_lut_size = I40E_VF_HLUT_ARRAY_SIZE;\n+\n \tif (vf->lan_vsi_idx) {\n \t\tvfres->vsi_res[0].vsi_id = vf->lan_vsi_id;\n \t\tvfres->vsi_res[0].vsi_type = I40E_VSI_SRIOV;\n@@ -2042,6 +2049,139 @@ error_param:\n }\n \n /**\n+ * i40e_vc_config_rss_key\n+ * @vf: pointer to the VF info\n+ * @msg: pointer to the msg buffer\n+ * @msglen: msg length\n+ *\n+ * Configure the VF's RSS key\n+ **/\n+static int i40e_vc_config_rss_key(struct i40e_vf *vf, u8 *msg, u16 msglen)\n+{\n+\tstruct i40e_virtchnl_rss_key *vrk =\n+\t\t(struct i40e_virtchnl_rss_key *)msg;\n+\tstruct i40e_pf *pf = vf->pf;\n+\tstruct i40e_vsi *vsi = NULL;\n+\tu16 vsi_id = vrk->vsi_id;\n+\ti40e_status aq_ret = 0;\n+\n+\tif (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) ||\n+\t    !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) ||\n+\t    !i40e_vc_isvalid_vsi_id(vf, vsi_id) ||\n+\t    (vrk->key_len != I40E_HKEY_ARRAY_SIZE)) {\n+\t\taq_ret = I40E_ERR_PARAM;\n+\t\tgoto err;\n+\t}\n+\n+\tvsi = pf->vsi[vf->lan_vsi_idx];\n+\taq_ret = i40e_config_rss(vsi, vrk->key, NULL, 0);\n+err:\n+\t/* send the response to the VF */\n+\treturn i40e_vc_send_resp_to_vf(vf, I40E_VIRTCHNL_OP_CONFIG_RSS_KEY,\n+\t\t\t\t       aq_ret);\n+}\n+\n+/**\n+ * i40e_vc_config_rss_lut\n+ * @vf: pointer to the VF info\n+ * @msg: pointer to the msg buffer\n+ * @msglen: msg length\n+ *\n+ * Configure the VF's RSS LUT\n+ **/\n+static int i40e_vc_config_rss_lut(struct i40e_vf *vf, u8 *msg, u16 msglen)\n+{\n+\tstruct i40e_virtchnl_rss_lut *vrl =\n+\t\t(struct i40e_virtchnl_rss_lut *)msg;\n+\tstruct i40e_pf *pf = vf->pf;\n+\tstruct i40e_vsi *vsi = NULL;\n+\tu16 vsi_id = vrl->vsi_id;\n+\ti40e_status aq_ret = 0;\n+\n+\tif (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) ||\n+\t    !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) ||\n+\t    !i40e_vc_isvalid_vsi_id(vf, vsi_id) ||\n+\t    (vrl->lut_entries != I40E_VF_HLUT_ARRAY_SIZE)) {\n+\t\taq_ret = I40E_ERR_PARAM;\n+\t\tgoto err;\n+\t}\n+\n+\tvsi = pf->vsi[vf->lan_vsi_idx];\n+\taq_ret = i40e_config_rss(vsi, NULL, vrl->lut, I40E_VF_HLUT_ARRAY_SIZE);\n+\t/* send the response to the VF */\n+err:\n+\treturn i40e_vc_send_resp_to_vf(vf, I40E_VIRTCHNL_OP_CONFIG_RSS_LUT,\n+\t\t\t\t       aq_ret);\n+}\n+\n+/**\n+ * i40e_vc_get_rss_hena\n+ * @vf: pointer to the VF info\n+ * @msg: pointer to the msg buffer\n+ * @msglen: msg length\n+ *\n+ * Return the RSS HENA bits allowed by the hardware\n+ **/\n+static int i40e_vc_get_rss_hena(struct i40e_vf *vf, u8 *msg, u16 msglen)\n+{\n+\tstruct i40e_virtchnl_rss_hena *vrh = NULL;\n+\tstruct i40e_pf *pf = vf->pf;\n+\ti40e_status aq_ret = 0;\n+\tint len = 0;\n+\n+\tif (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) ||\n+\t    !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps)) {\n+\t\taq_ret = I40E_ERR_PARAM;\n+\t\tgoto err;\n+\t}\n+\tlen = sizeof(struct i40e_virtchnl_rss_hena);\n+\n+\tvrh = kzalloc(len, GFP_KERNEL);\n+\tif (!vrh) {\n+\t\taq_ret = I40E_ERR_NO_MEMORY;\n+\t\tlen = 0;\n+\t\tgoto err;\n+\t}\n+\tvrh->hena = i40e_pf_get_default_rss_hena(pf);\n+err:\n+\t/* send the response back to the VF */\n+\taq_ret = i40e_vc_send_msg_to_vf(vf, I40E_VIRTCHNL_OP_GET_RSS_HENA_CAPS,\n+\t\t\t\t\taq_ret, (u8 *)vrh, len);\n+\treturn aq_ret;\n+}\n+\n+/**\n+ * i40e_vc_set_rss_hena\n+ * @vf: pointer to the VF info\n+ * @msg: pointer to the msg buffer\n+ * @msglen: msg length\n+ *\n+ * Set the RSS HENA bits for the VF\n+ **/\n+static int i40e_vc_set_rss_hena(struct i40e_vf *vf, u8 *msg, u16 msglen)\n+{\n+\tstruct i40e_virtchnl_rss_hena *vrh =\n+\t\t(struct i40e_virtchnl_rss_hena *)msg;\n+\tstruct i40e_pf *pf = vf->pf;\n+\tstruct i40e_hw *hw = &pf->hw;\n+\ti40e_status aq_ret = 0;\n+\n+\tif (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) ||\n+\t    !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps)) {\n+\t\taq_ret = I40E_ERR_PARAM;\n+\t\tgoto err;\n+\t}\n+\ti40e_write_rx_ctl(hw, I40E_VFQF_HENA1(0, vf->vf_id), (u32)vrh->hena);\n+\ti40e_write_rx_ctl(hw, I40E_VFQF_HENA1(1, vf->vf_id),\n+\t\t\t  (u32)(vrh->hena >> 32));\n+\n+\t/* send the response to the VF */\n+err:\n+\treturn i40e_vc_send_resp_to_vf(vf, I40E_VIRTCHNL_OP_SET_RSS_HENA,\n+\t\t\t\t       aq_ret);\n+}\n+\n+/**\n  * i40e_vc_validate_vf_msg\n  * @vf: pointer to the VF info\n  * @msg: pointer to the msg buffer\n@@ -2162,6 +2302,36 @@ static int i40e_vc_validate_vf_msg(struct i40e_vf *vf, u32 v_opcode,\n \t\t\t\tsizeof(struct i40e_virtchnl_iwarp_qv_info));\n \t\t}\n \t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_CONFIG_RSS_KEY:\n+\t\tvalid_len = sizeof(struct i40e_virtchnl_rss_key);\n+\t\tif (msglen >= valid_len) {\n+\t\t\tstruct i40e_virtchnl_rss_key *vrk =\n+\t\t\t\t(struct i40e_virtchnl_rss_key *)msg;\n+\t\t\tif (vrk->key_len != I40E_HKEY_ARRAY_SIZE) {\n+\t\t\t\terr_msg_format = true;\n+\t\t\t\tbreak;\n+\t\t\t}\n+\t\t\tvalid_len += vrk->key_len - 1;\n+\t\t}\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_CONFIG_RSS_LUT:\n+\t\tvalid_len = sizeof(struct i40e_virtchnl_rss_lut);\n+\t\tif (msglen >= valid_len) {\n+\t\t\tstruct i40e_virtchnl_rss_lut *vrl =\n+\t\t\t\t(struct i40e_virtchnl_rss_lut *)msg;\n+\t\t\tif (vrl->lut_entries != I40E_VF_HLUT_ARRAY_SIZE) {\n+\t\t\t\terr_msg_format = true;\n+\t\t\t\tbreak;\n+\t\t\t}\n+\t\t\tvalid_len += vrl->lut_entries - 1;\n+\t\t}\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_GET_RSS_HENA_CAPS:\n+\t\tvalid_len = 0;\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_SET_RSS_HENA:\n+\t\tvalid_len = sizeof(struct i40e_virtchnl_rss_hena);\n+\t\tbreak;\n \t/* These are always errors coming from the VF. */\n \tcase I40E_VIRTCHNL_OP_EVENT:\n \tcase I40E_VIRTCHNL_OP_UNKNOWN:\n@@ -2260,6 +2430,19 @@ int i40e_vc_process_vf_msg(struct i40e_pf *pf, u16 vf_id, u32 v_opcode,\n \tcase I40E_VIRTCHNL_OP_RELEASE_IWARP_IRQ_MAP:\n \t\tret = i40e_vc_iwarp_qvmap_msg(vf, msg, msglen, false);\n \t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_CONFIG_RSS_KEY:\n+\t\tret = i40e_vc_config_rss_key(vf, msg, msglen);\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_CONFIG_RSS_LUT:\n+\t\tret = i40e_vc_config_rss_lut(vf, msg, msglen);\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_GET_RSS_HENA_CAPS:\n+\t\tret = i40e_vc_get_rss_hena(vf, msg, msglen);\n+\t\tbreak;\n+\tcase I40E_VIRTCHNL_OP_SET_RSS_HENA:\n+\t\tret = i40e_vc_set_rss_hena(vf, msg, msglen);\n+\t\tbreak;\n+\n \tcase I40E_VIRTCHNL_OP_UNKNOWN:\n \tdefault:\n \t\tdev_err(&pf->pdev->dev, \"Unsupported opcode %d from VF %d\\n\",\n",
    "prefixes": [
        "next",
        "S33",
        "01/13"
    ]
}