Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1420/?format=api
https://patches.dpdk.org/api/patches/1420/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416530816-2159-17-git-send-email-jingjing.wu@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": "<1416530816-2159-17-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1416530816-2159-17-git-send-email-jingjing.wu@intel.com", "date": "2014-11-21T00:46:50", "name": "[dpdk-dev,v6,16/22] ethdev: define structures for getting flow director statistics", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "0a548defb0598f6ba38cd5da0628f3333264fe5f", "submitter": { "id": 47, "url": "https://patches.dpdk.org/api/people/47/?format=api", "name": "Jingjing Wu", "email": "jingjing.wu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416530816-2159-17-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1420/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1420/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 8E5EF7FE6;\n\tFri, 21 Nov 2014 01:37:13 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 3D3B27FA5\n\tfor <dev@dpdk.org>; Fri, 21 Nov 2014 01:37:07 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga103.jf.intel.com with ESMTP; 20 Nov 2014 16:44:51 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 20 Nov 2014 16:47:37 -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 sAL0lZVx004188;\n\tFri, 21 Nov 2014 08:47:35 +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 sAL0lX9B002307; Fri, 21 Nov 2014 08:47:35 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sAL0lXMU002303; \n\tFri, 21 Nov 2014 08:47:33 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,426,1413270000\"; d=\"scan'208\";a=\"611514648\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 21 Nov 2014 08:46:50 +0800", "Message-Id": "<1416530816-2159-17-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "References": "<1414654006-7472-1-git-send-email-jingjing.wu@intel.com>\n\t<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 16/22] ethdev: define structures for getting\n\tflow director statistics", "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": "define structures for getting flow director statistics\n\nSigned-off-by: jingjing.wu <jingjing.wu@intel.com>\n---\n lib/librte_ether/rte_eth_ctrl.h | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex b05d9eb..7fa7103 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -70,6 +70,7 @@ enum rte_filter_op {\n \tRTE_ETH_FILTER_GET, /**< get filter entry */\n \tRTE_ETH_FILTER_SET, /**< configurations */\n \tRTE_ETH_FILTER_INFO, /**< retrieve information */\n+\tRTE_ETH_FILTER_STATS, /**< retrieve statistics */\n \tRTE_ETH_FILTER_OP_MAX\n };\n \n@@ -410,6 +411,25 @@ struct rte_eth_fdir_info {\n \t/**< Max supported size of flex bitmasks in flex_bitmask_unit */\n };\n \n+/**\n+ * A structure used to define the statistics of flow director.\n+ * It supports RTE_ETH_FILTER_FDIR with RTE_ETH_FILTER_STATS operation.\n+ */\n+struct rte_eth_fdir_stats {\n+\tuint32_t collision; /**< Number of filters with collision. */\n+\tuint32_t free; /**< Number of free filters. */\n+\tuint32_t maxhash;\n+\t/**< The lookup hash value of the added filter that updated the value\n+\t of the MAXLEN field */\n+\tuint32_t maxlen; /**< Longest linked list of filters. */\n+\tuint64_t add; /**< Number of added filters. */\n+\tuint64_t remove; /**< Number of removed filters. */\n+\tuint64_t f_add; /**< Number of failed added filters. */\n+\tuint64_t f_remove; /**< Number of failed removed filters. */\n+\tuint32_t guarant_cnt; /**< Number of filters in guaranteed spaces. */\n+\tuint32_t best_cnt; /**< Number of filters in best effort spaces. */\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v6", "16/22" ] }{ "id": 1420, "url": "