Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2456/?format=api
https://patches.dpdk.org/api/patches/2456/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421888956-3020-1-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": "<1421888956-3020-1-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1421888956-3020-1-git-send-email-jingjing.wu@intel.com", "date": "2015-01-22T01:09:16", "name": "[dpdk-dev] doc: commands changed in testpmd_funcs for ethertype filter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ddd758e9c03e69a05899e051127a697dc08fe06f", "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/1421888956-3020-1-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/2456/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/2456/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 8A2615A31;\n\tThu, 22 Jan 2015 02:09:28 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 22D365424\n\tfor <dev@dpdk.org>; Thu, 22 Jan 2015 02:09:24 +0100 (CET)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 21 Jan 2015 17:09:23 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 21 Jan 2015 16:56:01 -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 t0M19LTR005306;\n\tThu, 22 Jan 2015 09:09:21 +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 t0M19HSE003054; Thu, 22 Jan 2015 09:09:19 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0M19HOW003050; \n\tThu, 22 Jan 2015 09:09:17 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"443438484\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Thu, 22 Jan 2015 09:09:16 +0800", "Message-Id": "<1421888956-3020-1-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "Subject": "[dpdk-dev] [PATCH] doc: commands changed in testpmd_funcs for\n\tethertype filter", "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": "new commands for ethertype filter\n - ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr)\n (mac_address) ethertype (ether_type) (drop|fwd) queue (queue_id)\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 51 +++++++----------------------\n 1 file changed, 12 insertions(+), 39 deletions(-)", "diff": "diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex be935c2..218835a 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -1392,61 +1392,34 @@ Filter Functions\n \n This section details the available filter functions that are available.\n \n-add_ethertype_filter\n+ethertype_filter\n ~~~~~~~~~~~~~~~~~~~~\n \n-Add a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue.\n+Add or delete a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue.\n \n-add_ethertype_filter (port_id) ethertype (eth_value) priority (enable|disable) (pri_value) queue (queue_id) index (idx)\n+ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr) (mac_address) ethertype (ether_type) (drop|fwd) queue (queue_id)\n \n The available information parameters are:\n \n * port_id: the port which the Ethertype filter assigned on.\n \n-* eth_value: the EtherType value want to match,\n- for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid.\n-\n-* enable: user priority participates in the match.\n-\n-* disable: user priority doesn't participate in the match.\n-\n-* pri_value: user priority value that want to match.\n-\n-* queue_id : The receive queue associated with this EtherType filter\n+* mac_addr: compare destination mac address.\n \n-* index: the index of this EtherType filter\n+* mac_ignr: ignore destination mac address match.\n \n-Example:\n-\n-.. code-block:: console\n+* mac_address: destination mac address to match.\n \n- testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 3 index 0\n- Assign ARP packet to receive queue 3\n-\n-remove_ethertype_filter\n-~~~~~~~~~~~~~~~~~~~~~~~\n-\n-Remove a L2 Ethertype filter\n-\n-remove_ethertype_filter (port_id) index (idx)\n-\n-get_ethertype_filter\n-~~~~~~~~~~~~~~~~~~~~\n-\n-Get and display a L2 Ethertype filter\n+* ether_type: the EtherType value want to match,\n+ for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid.\n \n-get_ethertype_filter (port_id) index (idx)\n+* queue_id : The receive queue associated with this EtherType filter. It is meaningless when deleting or dropping.\n \n-Example:\n+Example, to add/remove an ethertype filter rule:\n \n .. code-block:: console\n \n- testpmd> get_ethertype_filter 0 index 0\n-\n- filter[0]:\n- ethertype: 0x0806\n- priority: disable, 0\n- queue: 3\n+ testpmd> ethertype_filter 0 add mac_ignr ethertype 0x0806 fwd queue 3\n+ testpmd> ethertype_filter 0 del mac_ignr ethertype 0x0806 fwd queue 3\n \n add_2tuple_filter\n ~~~~~~~~~~~~~~~~~\n", "prefixes": [ "dpdk-dev" ] }{ "id": 2456, "url": "