Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/554/?format=api
https://patches.dpdk.org/api/patches/554/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-19-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": "<1411711418-12881-19-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1411711418-12881-19-git-send-email-jingjing.wu@intel.com", "date": "2014-09-26T06:03:36", "name": "[dpdk-dev,v3,18/20] lib/librte_ether: define structures for configuring flex masks", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dbf9adc0d657af9497b8465c3643b3698bc7720f", "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/1411711418-12881-19-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/554/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/554/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 E4EEF7E00;\n\tFri, 26 Sep 2014 07:58:06 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 0A2707E50\n\tfor <dev@dpdk.org>; Fri, 26 Sep 2014 07:58:04 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 25 Sep 2014 23:04:25 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 25 Sep 2014 22:58:22 -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 s8Q64MRe029353;\n\tFri, 26 Sep 2014 14:04:22 +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 s8Q64KxD013047; Fri, 26 Sep 2014 14:04:22 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8Q64K0U013043; \n\tFri, 26 Sep 2014 14:04:20 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"391863779\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 26 Sep 2014 14:03:36 +0800", "Message-Id": "<1411711418-12881-19-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>", "References": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 18/20] lib/librte_ether: define structures for\n\tconfiguring flex masks", "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 configuring flexible masks\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\nAcked-by: Chen Jing D(Mark) <jing.d.chen@intel.com>\nAcked-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_ether/rte_eth_ctrl.h | 24 ++++++++++++++++++++++++\n 1 file changed, 24 insertions(+)", "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex e412471..13861c8 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -119,7 +119,28 @@ struct rte_eth_flex_payload_cfg {\n \tstruct rte_eth_field_vector field[0];\n };\n \n+/**\n+ * A structure defined to specify each word's bit mask\n+ */\n+struct rte_eth_flex_mask {\n+\tuint8_t offset; /**< word offset of word in flexible payload */\n+\tuint16_t bitmask; /**< bit mask for word defined by offset */\n+};\n+\n+/**\n+ * A structure used to configure FDIR masks for flexible payload\n+ * for each flow type\n+ */\n+struct rte_eth_fdir_flex_masks {\n+\tenum rte_eth_flow_type flow_type; /**< flow type */\n+\tuint8_t words_mask; /**< bit i enables word i of 8 words flexible payload */\n+\tuint8_t nb_field; /**< the number of folloing fieds */\n+\tstruct rte_eth_flex_mask field[0];\n+};\n+\n #define RTE_ETH_FDIR_CFG_FLX 0x0001\n+#define RTE_ETH_FDIR_CFG_MASK 0x0002\n+#define RTE_ETH_FDIR_CFG_FLX_MASK 0x0003\n /**\n * A structure used to config FDIR filter global set\n * to support RTE_ETH_FILTER_FDIR with RTE_ETH_FILTER_OP_SET operation.\n@@ -129,9 +150,12 @@ struct rte_eth_fdir_cfg {\n \t/**\n \t * A pointer to structure for the configuration e.g.\n \t * struct rte_eth_flex_payload_cfg for FDIR_CFG_FLX\n+\t * struct rte_fdir_masks mask for FDIR_MASK\n+\t * struct rte_eth_fdir_flex_masks for FDIR_FLX_MASK\n \t*/\n \tvoid *cfg;\n };\n+\n /**\n * A structure used to define the input for IPV4 UDP flow\n */\n", "prefixes": [ "dpdk-dev", "v3", "18/20" ] }{ "id": 554, "url": "