Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/29441/?format=api
http://patches.dpdk.org/api/patches/29441/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1506700252-34949-4-git-send-email-beilei.xing@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": "<1506700252-34949-4-git-send-email-beilei.xing@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1506700252-34949-4-git-send-email-beilei.xing@intel.com", "date": "2017-09-29T15:50:47", "name": "[dpdk-dev,v7,3/8] net/i40e: support RSS for new pctype", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "831b4aa9374d7e80f140b80af2e21cb596675578", "submitter": { "id": 410, "url": "http://patches.dpdk.org/api/people/410/?format=api", "name": "Xing, Beilei", "email": "beilei.xing@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1506700252-34949-4-git-send-email-beilei.xing@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/29441/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/29441/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 D29321B1B3;\n\tFri, 29 Sep 2017 17:51:57 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 4039E1B19F\n\tfor <dev@dpdk.org>; Fri, 29 Sep 2017 17:51:43 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t29 Sep 2017 08:51:42 -0700", "from unknown (HELO dpdk9.sh.intel.com) ([10.67.118.52])\n\tby orsmga001.jf.intel.com with ESMTP; 29 Sep 2017 08:51:41 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.42,453,1500966000\"; d=\"scan'208\";\n\ta=\"1177050472\"", "From": "Beilei Xing <beilei.xing@intel.com>", "To": "jingjing.wu@intel.com", "Cc": "andrey.chilikin@intel.com,\n\tdev@dpdk.org", "Date": "Fri, 29 Sep 2017 23:50:47 +0800", "Message-Id": "<1506700252-34949-4-git-send-email-beilei.xing@intel.com>", "X-Mailer": "git-send-email 2.5.5", "In-Reply-To": "<1506700252-34949-1-git-send-email-beilei.xing@intel.com>", "References": "<1506662342-18966-1-git-send-email-beilei.xing@intel.com>\n\t<1506700252-34949-1-git-send-email-beilei.xing@intel.com>", "Subject": "[dpdk-dev] [PATCH v7 3/8] net/i40e: support RSS for new pctype", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Enable RSS for new pctypes after downloading\nnew profile.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nAcked-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 1da18e4..87e451a 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1934,6 +1934,31 @@ i40e_apply_link_speed(struct rte_eth_dev *dev)\n \treturn i40e_phy_conf_link(hw, abilities, speed, true);\n }\n \n+static void\n+i40e_customized_pctype_hash_set(struct i40e_pf *pf, bool enable)\n+{\n+\tstruct i40e_hw *hw = I40E_PF_TO_HW(pf);\n+\tuint64_t hena;\n+\tint i;\n+\n+\thena = (uint64_t)i40e_read_rx_ctl(hw, I40E_PFQF_HENA(0));\n+\thena |= ((uint64_t)i40e_read_rx_ctl(hw, I40E_PFQF_HENA(1))) << 32;\n+\n+\tfor (i = 0; i < I40E_CUSTOMIZED_MAX; i++) {\n+\t\tif (pf->customized_pctype[i].valid) {\n+\t\t\tif (enable)\n+\t\t\t\thena |= 1ULL << pf->customized_pctype[i].pctype;\n+\t\t\telse\n+\t\t\t\thena &= ~(1ULL <<\n+\t\t\t\t\t pf->customized_pctype[i].pctype);\n+\t\t}\n+\t}\n+\n+\ti40e_write_rx_ctl(hw, I40E_PFQF_HENA(0), (uint32_t)hena);\n+\ti40e_write_rx_ctl(hw, I40E_PFQF_HENA(1), (uint32_t)(hena >> 32));\n+\tI40E_WRITE_FLUSH(hw);\n+}\n+\n static int\n i40e_dev_start(struct rte_eth_dev *dev)\n {\n@@ -2081,6 +2106,8 @@ i40e_dev_start(struct rte_eth_dev *dev)\n \t\t\t \"please call hierarchy_commit() \"\n \t\t\t \"before starting the port\");\n \n+\ti40e_customized_pctype_hash_set(pf, true);\n+\n \treturn I40E_SUCCESS;\n \n err_up:\n@@ -2155,6 +2182,8 @@ i40e_dev_close(struct rte_eth_dev *dev)\n \tint i;\n \tint ret;\n \n+\ti40e_customized_pctype_hash_set(pf, false);\n+\n \tPMD_INIT_FUNC_TRACE();\n \n \ti40e_dev_stop(dev);\n", "prefixes": [ "dpdk-dev", "v7", "3/8" ] }{ "id": 29441, "url": "