Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1168/?format=api
https://patches.dpdk.org/api/patches/1168/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1415283932-20724-4-git-send-email-helin.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": "<1415283932-20724-4-git-send-email-helin.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1415283932-20724-4-git-send-email-helin.zhang@intel.com", "date": "2014-11-06T14:25:27", "name": "[dpdk-dev,v5,3/8] i40e: support of setting hash lookup table size", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f40a09c8a93f0de60885c9a83de8df1bfc346fc3", "submitter": { "id": 14, "url": "https://patches.dpdk.org/api/people/14/?format=api", "name": "Zhang, Helin", "email": "helin.zhang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1415283932-20724-4-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1168/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1168/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 4383E7F34;\n\tThu, 6 Nov 2014 15:16:45 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 0A5487EC4\n\tfor <dev@dpdk.org>; Thu, 6 Nov 2014 15:16:42 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 06 Nov 2014 06:24:04 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 06 Nov 2014 06:25:44 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id sA6EPg4L003494;\n\tThu, 6 Nov 2014 22:25:42 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid sA6EPeDC020780; Thu, 6 Nov 2014 22:25:42 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sA6EPeII020776; \n\tThu, 6 Nov 2014 22:25:40 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,326,1413270000\"; d=\"scan'208\";a=\"632650188\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 6 Nov 2014 22:25:27 +0800", "Message-Id": "<1415283932-20724-4-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1415283932-20724-1-git-send-email-helin.zhang@intel.com>", "References": "<1414746215-17327-1-git-send-email-helin.zhang@intel.com>\n\t<1415283932-20724-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 3/8] i40e: support of setting hash lookup\n\ttable size", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "Add support of setting hash lookup table size according to the hardawre\ncapability.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_ether/rte_ethdev.h | 9 ++++++++-\n lib/librte_pmd_i40e/i40e_ethdev.c | 14 +++++++++++++-\n lib/librte_pmd_i40e/i40e_ethdev.h | 1 +\n 3 files changed, 22 insertions(+), 2 deletions(-)\n\nv5 changes:\n* Reworked the annotations of macros of RETA sizes.", "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 7e4c998..93df7b1 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -443,9 +443,16 @@ struct rte_eth_rss_conf {\n \t\tETH_RSS_FRAG_IPV6 | \\\n \t\tETH_RSS_L2_PAYLOAD)\n \n-/* Definitions used for redirection table entry size */\n+/*\n+ * Definitions used for redirection table entry size.\n+ * Some RSS RETA sizes may not be supported by some drivers, check the\n+ * documentation or the description of relevant functions for more details.\n+ */\n #define ETH_RSS_RETA_NUM_ENTRIES 128\n #define ETH_RSS_RETA_MAX_QUEUE 16\n+#define ETH_RSS_RETA_SIZE_64 64\n+#define ETH_RSS_RETA_SIZE_128 128\n+#define ETH_RSS_RETA_SIZE_512 512\n \n /* Definitions used for VMDQ and DCB functionality */\n #define ETH_VMDQ_MAX_VLAN_FILTERS 64 /**< Maximum nb. of VMDQ vlan filters. */\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 4570795..c6b52be 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -3195,7 +3195,19 @@ i40e_pf_setup(struct i40e_pf *pf)\n \n \t/* Configure filter control */\n \tmemset(&settings, 0, sizeof(settings));\n-\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_128;\n+\tif (hw->func_caps.rss_table_size == ETH_RSS_RETA_SIZE_128)\n+\t\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_128;\n+\telse if (hw->func_caps.rss_table_size == ETH_RSS_RETA_SIZE_512)\n+\t\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_512;\n+\telse {\n+\t\tPMD_DRV_LOG(ERR, \"Hash lookup table size (%u) not supported\\n\",\n+\t\t\t\t\t\thw->func_caps.rss_table_size);\n+\t\treturn I40E_ERR_PARAM;\n+\t}\n+\tPMD_DRV_LOG(INFO, \"Hardware capability of hash lookup table \"\n+\t\t\t\"size: %u\\n\", hw->func_caps.rss_table_size);\n+\tpf->hash_lut_size = hw->func_caps.rss_table_size;\n+\n \t/* Enable ethtype and macvlan filters */\n \tsettings.enable_ethtype = TRUE;\n \tsettings.enable_macvlan = TRUE;\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.h b/lib/librte_pmd_i40e/i40e_ethdev.h\nindex afa14aa..28c0754 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.h\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.h\n@@ -270,6 +270,7 @@ struct i40e_pf {\n \tuint16_t vmdq_nb_qps; /* The number of queue pairs of VMDq */\n \tuint16_t vf_nb_qps; /* The number of queue pairs of VF */\n \tuint16_t fdir_nb_qps; /* The number of queue pairs of Flow Director */\n+\tuint16_t hash_lut_size; /* The size of hash lookup table */\n \n \t/* store VXLAN UDP ports */\n \tuint16_t vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];\n", "prefixes": [ "dpdk-dev", "v5", "3/8" ] }{ "id": 1168, "url": "