Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21000/?format=api
https://patches.dpdk.org/api/patches/21000/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488354455-142764-4-git-send-email-david.hunt@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": "<1488354455-142764-4-git-send-email-david.hunt@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1488354455-142764-4-git-send-email-david.hunt@intel.com", "date": "2017-03-01T07:47:20", "name": "[dpdk-dev,v8,03/18] lib: add new burst oriented distributor structs", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "724a004fcfa8e99dcdc5d1d880256fcefb2fc412", "submitter": { "id": 342, "url": "https://patches.dpdk.org/api/people/342/?format=api", "name": "Hunt, David", "email": "david.hunt@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488354455-142764-4-git-send-email-david.hunt@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21000/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/21000/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 D2A6DD59A;\n\tWed, 1 Mar 2017 15:47:33 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 031FB2C2B\n\tfor <dev@dpdk.org>; Wed, 1 Mar 2017 15:47:14 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Mar 2017 06:47:08 -0800", "from silpixa00397515.ir.intel.com (HELO\n\tsilpixa00397515.ger.corp.intel.com) ([10.237.223.14])\n\tby fmsmga001.fm.intel.com with ESMTP; 01 Mar 2017 06:47:07 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.35,226,1484035200\"; d=\"scan'208\";\n\ta=\"1117076488\"", "From": "David Hunt <david.hunt@intel.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com,\n\tDavid Hunt <david.hunt@intel.com>", "Date": "Wed, 1 Mar 2017 07:47:20 +0000", "Message-Id": "<1488354455-142764-4-git-send-email-david.hunt@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1488354455-142764-1-git-send-email-david.hunt@intel.com>", "References": "<1487647073-129064-2-git-send-email-david.hunt@intel.com>\n\t<1488354455-142764-1-git-send-email-david.hunt@intel.com>", "Subject": "[dpdk-dev] [PATCH v8 03/18] lib: add new burst oriented distributor\n\tstructs", "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": "Signed-off-by: David Hunt <david.hunt@intel.com>\n---\n lib/librte_distributor/rte_distributor_private.h | 56 ++++++++++++++++++++++++\n 1 file changed, 56 insertions(+)", "diff": "diff --git a/lib/librte_distributor/rte_distributor_private.h b/lib/librte_distributor/rte_distributor_private.h\nindex 6d72f1c..d3a470e 100644\n--- a/lib/librte_distributor/rte_distributor_private.h\n+++ b/lib/librte_distributor/rte_distributor_private.h\n@@ -129,6 +129,62 @@ struct rte_distributor {\n \tstruct rte_distributor_returned_pkts returns;\n };\n \n+/* All different signature compare functions */\n+enum rte_distributor_match_function {\n+\tRTE_DIST_MATCH_SCALAR = 0,\n+\tRTE_DIST_MATCH_VECTOR,\n+\tRTE_DIST_NUM_MATCH_FNS\n+};\n+\n+/**\n+ * Buffer structure used to pass the pointer data between cores. This is cache\n+ * line aligned, but to improve performance and prevent adjacent cache-line\n+ * prefetches of buffers for other workers, e.g. when worker 1's buffer is on\n+ * the next cache line to worker 0, we pad this out to two cache lines.\n+ * We can pass up to 8 mbufs at a time in one cacheline.\n+ * There is a separate cacheline for returns in the burst API.\n+ */\n+struct rte_distributor_buffer_v1705 {\n+\tvolatile int64_t bufptr64[RTE_DIST_BURST_SIZE]\n+\t\t__rte_cache_aligned; /* <= outgoing to worker */\n+\n+\tint64_t pad1 __rte_cache_aligned; /* <= one cache line */\n+\n+\tvolatile int64_t retptr64[RTE_DIST_BURST_SIZE]\n+\t\t__rte_cache_aligned; /* <= incoming from worker */\n+\n+\tint64_t pad2 __rte_cache_aligned; /* <= one cache line */\n+\n+\tint count __rte_cache_aligned; /* <= number of current mbufs */\n+};\n+\n+struct rte_distributor_v1705 {\n+\tTAILQ_ENTRY(rte_distributor) next; /**< Next in list. */\n+\n+\tchar name[RTE_DISTRIBUTOR_NAMESIZE]; /**< Name of the ring. */\n+\tunsigned int num_workers; /**< Number of workers polling */\n+\tunsigned int alg_type; /**< Number of alg types */\n+\n+\t/**>\n+\t * First cache line in the this array are the tags inflight\n+\t * on the worker core. Second cache line are the backlog\n+\t * that are going to go to the worker core.\n+\t */\n+\tuint16_t in_flight_tags[RTE_DISTRIB_MAX_WORKERS][RTE_DIST_BURST_SIZE*2]\n+\t\t\t__rte_cache_aligned;\n+\n+\tstruct rte_distributor_backlog backlog[RTE_DISTRIB_MAX_WORKERS]\n+\t\t\t__rte_cache_aligned;\n+\n+\tstruct rte_distributor_buffer_v1705 bufs[RTE_DISTRIB_MAX_WORKERS];\n+\n+\tstruct rte_distributor_returned_pkts returns;\n+\n+\tenum rte_distributor_match_function dist_match_fn;\n+\n+\tstruct rte_distributor *d_v20;\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v8", "03/18" ] }{ "id": 21000, "url": "