Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/5128/?format=api
https://patches.dpdk.org/api/patches/5128/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1433379638-32715-5-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": "<1433379638-32715-5-git-send-email-helin.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1433379638-32715-5-git-send-email-helin.zhang@intel.com", "date": "2015-06-04T01:00:36", "name": "[dpdk-dev,4/6] i40e: fill the hash key size", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "669f5beec27add03fcc447e88ee5f0e1595fec4c", "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/1433379638-32715-5-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/5128/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/5128/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 7ED59C33C;\n\tThu, 4 Jun 2015 03:00:55 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 6515C5A8B\n\tfor <dev@dpdk.org>; Thu, 4 Jun 2015 03:00:54 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga102.jf.intel.com with ESMTP; 03 Jun 2015 18:00:53 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 03 Jun 2015 18:00:52 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t5410ocL007997;\n\tThu, 4 Jun 2015 09:00:50 +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 t5410l4h000312; Thu, 4 Jun 2015 09:00:50 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t5410lZo000308; \n\tThu, 4 Jun 2015 09:00:47 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.13,549,1427785200\"; d=\"scan'208\";a=\"704979774\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 4 Jun 2015 09:00:36 +0800", "Message-Id": "<1433379638-32715-5-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1433379638-32715-1-git-send-email-helin.zhang@intel.com>", "References": "<1433379638-32715-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 4/6] i40e: fill the hash key 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": "The correct hash key size in bytes should be filled into the\n'struct rte_eth_dev_info', to support querying it.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n drivers/net/i40e/i40e_ethdev.c | 2 ++\n drivers/net/i40e/i40e_ethdev_vf.c | 2 ++\n 2 files changed, 4 insertions(+)", "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex da6c0b5..c699ddb 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -1540,6 +1540,8 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \t\tDEV_TX_OFFLOAD_SCTP_CKSUM |\n \t\tDEV_TX_OFFLOAD_OUTER_IPV4_CKSUM |\n \t\tDEV_TX_OFFLOAD_TCP_TSO;\n+\tdev_info->hash_key_size = (I40E_PFQF_HKEY_MAX_INDEX + 1) *\n+\t\t\t\t\t\tsizeof(uint32_t);\n \tdev_info->reta_size = pf->hash_lut_size;\n \tdev_info->flow_type_rss_offloads = I40E_RSS_OFFLOAD_ALL;\n \ndiff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c\nindex 9f92a2f..eb37d3a 100644\n--- a/drivers/net/i40e/i40e_ethdev_vf.c\n+++ b/drivers/net/i40e/i40e_ethdev_vf.c\n@@ -1641,6 +1641,8 @@ i40evf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \tdev_info->max_tx_queues = vf->vsi_res->num_queue_pairs;\n \tdev_info->min_rx_bufsize = I40E_BUF_SIZE_MIN;\n \tdev_info->max_rx_pktlen = I40E_FRAME_SIZE_MAX;\n+\tdev_info->hash_key_size = (I40E_VFQF_HKEY_MAX_INDEX + 1) *\n+\t\t\t\t\t\tsizeof(uint32_t);\n \tdev_info->reta_size = ETH_RSS_RETA_SIZE_64;\n \tdev_info->flow_type_rss_offloads = I40E_RSS_OFFLOAD_ALL;\n \n", "prefixes": [ "dpdk-dev", "4/6" ] }{ "id": 5128, "url": "