Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/660/?format=api
https://patches.dpdk.org/api/patches/660/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1412058028-10971-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": "<1412058028-10971-4-git-send-email-helin.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1412058028-10971-4-git-send-email-helin.zhang@intel.com", "date": "2014-09-30T06:20:24", "name": "[dpdk-dev,v3,3/7] ethdev: add structures and enum for hash filter control", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "290f0878578400eaa90eaaa16b80fa41d491f1ed", "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/1412058028-10971-4-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/660/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/660/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 9EAA87E6E;\n\tTue, 30 Sep 2014 08:14:16 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 75E386AAE\n\tfor <dev@dpdk.org>; Tue, 30 Sep 2014 08:14:14 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga103.jf.intel.com with ESMTP; 29 Sep 2014 23:18:39 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 29 Sep 2014 23:20:40 -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 s8U6KcmB003452;\n\tTue, 30 Sep 2014 14:20:38 +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 s8U6KaUV011028; Tue, 30 Sep 2014 14:20:38 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8U6KaOA011024; \n\tTue, 30 Sep 2014 14:20:36 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.04,625,1406617200\"; d=\"scan'208\";a=\"610692261\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Date": "Tue, 30 Sep 2014 14:20:24 +0800", "Message-Id": "<1412058028-10971-4-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1412058028-10971-1-git-send-email-helin.zhang@intel.com>", "References": "<1412058028-10971-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 3/7] ethdev: add structures and enum for hash\n\tfilter control", "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": "Structures and enum are added in rte_eth_ctrl.h to support hash\nfilter control.\n\nv3 changes:\n* Common structures are added in rte_eth_ctrl.h to support hash\n filter control.\n* Hash filter info types and hash function types are added in\n rte_eth_ctrl.h to support filter control.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nAcked-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n lib/librte_ether/rte_eth_ctrl.h | 74 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 74 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex aaea075..10197fc 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -73,6 +73,80 @@ enum rte_filter_op {\n \tRTE_ETH_FILTER_OP_MAX,\n };\n \n+/**\n+ * Hash filter information types.\n+ */\n+enum rte_eth_hash_filter_info_type {\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_UNKNOWN = 0,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_SYM_HASH_ENA_PER_PCTYPE,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_SYM_HASH_ENA_PER_PORT,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_FILTER_SWAP,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_HASH_FUNCTION,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_MAX,\n+};\n+\n+/**\n+ * Hash function types.\n+ */\n+enum rte_eth_hash_function {\n+\tRTE_ETH_HASH_FUNCTION_UNKNOWN = 0,\n+\tRTE_ETH_HASH_FUNCTION_TOEPLITZ,\n+\tRTE_ETH_HASH_FUNCTION_SIMPLE_XOR,\n+\tRTE_ETH_HASH_FUNCTION_MAX,\n+};\n+\n+/**\n+ * A structure used to set or get symmetric hash enable information, to support\n+ * 'RTE_ETH_FILTER_HASH', 'RTE_ETH_FILTER_OP_GET/RTE_ETH_FILTER_OP_SET', with\n+ * information type 'RTE_ETH_HASH_FILTER_INFO_TYPE_SYM_HASH_ENA_PER_PCTYPE'.\n+ */\n+struct rte_eth_sym_hash_ena_info {\n+\t/**< packet classification type, defined in rte_ethdev.h */\n+\tuint8_t pctype;\n+\tuint8_t enable; /**< enable or disable flag */\n+};\n+\n+/**\n+ * A structure used to set or get filter swap information, to support\n+ * 'RTE_ETH_FILTER_HASH', 'RTE_ETH_FILTER_OP_GET/RTE_ETH_FILTER_OP_SET',\n+ * with information type 'RTE_ETH_HASH_FILTER_INFO_TYPE_FILTER_SWAP'.\n+ */\n+struct rte_eth_filter_swap_info {\n+\t/**< Packet classification type, defined in rte_ethdev.h */\n+\tuint8_t pctype;\n+\t/**< Offset of the 1st field of the 1st couple to be swapped. */\n+\tuint8_t off0_src0;\n+\t/**< Offset of the 2nd field of the 1st couple to be swapped. */\n+\tuint8_t off0_src1;\n+\t/**< Field length of the first couple. */\n+\tuint8_t len0;\n+\t/**< Offset of the 1st field of the 2nd couple to be swapped. */\n+\tuint8_t off1_src0;\n+\t/**< Offset of the 2nd field of the 2nd couple to be swapped. */\n+\tuint8_t off1_src1;\n+\t/**< Field length of the second couple. */\n+\tuint8_t len1;\n+};\n+\n+/**\n+ * A structure used to set or get hash filter information, to support filter\n+ * type of 'RTE_ETH_FILTER_HASH' and its operations.\n+ */\n+struct rte_eth_hash_filter_info {\n+\tenum rte_eth_hash_filter_info_type info_type; /**< Information type. */\n+\t/**< Details of hash filter infomation */\n+\tunion {\n+\t\t/* For RTE_ETH_HASH_FILTER_INFO_TYPE_SYM_HASH_ENA_PER_PCTYPE */\n+\t\tstruct rte_eth_sym_hash_ena_info sym_hash_ena;\n+\t\t/* For RTE_ETH_HASH_FILTER_INFO_TYPE_FILTER_SWAP */\n+\t\tstruct rte_eth_filter_swap_info filter_swap;\n+\t\t/* For RTE_ETH_HASH_FILTER_INFO_TYPE_SYM_HASH_ENA_PER_PORT */\n+\t\tuint8_t enable;\n+\t\t/* For RTE_ETH_HASH_FILTER_INFO_TYPE_HASH_FUNCTION */\n+\t\tenum rte_eth_hash_function hash_function;\n+\t} info;\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v3", "3/7" ] }{ "id": 660, "url": "