Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/489/?format=api
https://patches.dpdk.org/api/patches/489/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411628369-29532-3-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": "<1411628369-29532-3-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1411628369-29532-3-git-send-email-jingjing.wu@intel.com", "date": "2014-09-25T06:59:27", "name": "[dpdk-dev,2/4] lib/librte_ether: define CTRL_PKT filter type and its structure", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "addc7acc79d340765244a9d9db0e11e06958b0e9", "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/1411628369-29532-3-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/489/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/489/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 C51E5B38C;\n\tThu, 25 Sep 2014 08:53:51 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 220FAB38C\n\tfor <dev@dpdk.org>; Thu, 25 Sep 2014 08:53:49 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 25 Sep 2014 00:00:05 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 25 Sep 2014 00:00:03 -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 s8P7005s030077;\n\tThu, 25 Sep 2014 15:00:00 +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 s8P6xwKl029631; Thu, 25 Sep 2014 15:00:00 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8P6xw3H029627; \n\tThu, 25 Sep 2014 14:59:58 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.04,595,1406617200\"; d=\"scan'208\";a=\"578683138\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 25 Sep 2014 14:59:27 +0800", "Message-Id": "<1411628369-29532-3-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1411628369-29532-1-git-send-email-jingjing.wu@intel.com>", "References": "<1411628369-29532-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH 2/4] lib/librte_ether: define CTRL_PKT filter\n\ttype and its structure", "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 new filter type and its structure\n - RTE_ETH_FILTER_CTRL_PKT\n - struct rte_ctrl_pkt_filter\n\nSigned-off-by: Jingjing Wu <jingjing.wu@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 34ab278..ff686be 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -53,6 +53,7 @@ enum rte_filter_type {\n \tRTE_ETH_FILTER_NONE = 0,\n \tRTE_ETH_FILTER_RSS,\n \tRTE_ETH_FILTER_FDIR,\n+\tRTE_ETH_FILTER_CTRL_PKT,\n \tRTE_ETH_FILTER_MAX,\n };\n \n@@ -71,6 +72,29 @@ enum rte_filter_op {\n \tRTE_ETH_FILTER_OP_MAX,\n };\n \n+/**\n+ * Define all structures for Control Packet Filter type corresponding with specific operations.\n+ */\n+\n+#define RTE_CONTROL_PACKET_FLAGS_IGNORE_MAC 0x0001\n+#define RTE_CONTROL_PACKET_FLAGS_DROP 0x0002\n+#define RTE_CONTROL_PACKET_FLAGS_TO_QUEUE 0x0004\n+#define RTE_CONTROL_PACKET_FLAGS_TX 0x0008\n+#define RTE_CONTROL_PACKET_FLAGS_RX 0x0000\n+\n+/**\n+ * A structure used to define the control packet filter entry\n+ * to support RTE_ETH_FILTER_CTRL_PKT with RTE_ETH_FILTER_OP_ADD\n+ * and RTE_ETH_FILTER_OP_DELETE operations.\n+ */\n+struct rte_ctrl_pkt_filter {\n+\tstruct ether_addr mac_addr; /**< mac address to match. */\n+\tuint16_t ether_type; /**< ether type to match */\n+\tuint16_t flags; /**< options for filter's behavior*/\n+\tuint16_t dest_id; /**< destination vsi id or pool id*/\n+\tuint16_t queue; /**< queue assign to if TO QUEUE flag is set */\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "2/4" ] }{ "id": 489, "url": "