From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 366C05A1F for ; Wed, 21 Jan 2015 09:30:58 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 21 Jan 2015 00:25:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,440,1418112000"; d="scan'208";a="654149328" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 21 Jan 2015 00:30:56 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t0L8UsB3007698; Wed, 21 Jan 2015 16:30:54 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t0L8UpsW009654; Wed, 21 Jan 2015 16:30:53 +0800 Received: (from wujingji@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0L8UpDb009650; Wed, 21 Jan 2015 16:30:51 +0800 From: Jingjing Wu To: dev@dpdk.org Date: Wed, 21 Jan 2015 16:30:50 +0800 Message-Id: <1421829050-9620-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 ethertype filter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2015 08:30:58 -0000 new commands for ethertype filter - ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr) (mac_address) ethertype (ether_type) (drop|fwd) queue (queue_id) Signed-off-by: Jingjing Wu --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 46 +++++++---------------------- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index be935c2..61a7f6d 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -1397,56 +1397,32 @@ add_ethertype_filter Add a L2 Ethertype filter, which identify packets by their L2 Ethertype mainly assign them to a receive queue. -add_ethertype_filter (port_id) ethertype (eth_value) priority (enable|disable) (pri_value) queue (queue_id) index (idx) +ethertype_filter (port_id) (add|del) (mac_addr|mac_ignr) (mac_address) ethertype (ether_type) (drop|fwd) queue (queue_id) The available information parameters are: * port_id: the port which the Ethertype filter assigned on. -* eth_value: the EtherType value want to match, - for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid. - -* enable: user priority participates in the match. - -* disable: user priority doesn't participate in the match. - -* pri_value: user priority value that want to match. - -* queue_id : The receive queue associated with this EtherType filter +* mac_addr: need compare destination mac address. -* index: the index of this EtherType filter - -Example: - -.. code-block:: console +* mac_ignr: ignore destination mac address match. - testpmd> add_ethertype_filter 0 ethertype 0x0806 priority disable 0 queue 3 index 0 - Assign ARP packet to receive queue 3 +* mac_address: destination mac address need to match. -remove_ethertype_filter -~~~~~~~~~~~~~~~~~~~~~~~ - -Remove a L2 Ethertype filter - -remove_ethertype_filter (port_id) index (idx) - -get_ethertype_filter -~~~~~~~~~~~~~~~~~~~~ - -Get and display a L2 Ethertype filter +* ether_type: the EtherType value want to match, + for example 0x0806 for ARP packet. 0x0800 (IPv4) and 0x86DD (IPv6) are invalid. -get_ethertype_filter (port_id) index (idx) +* queue_id : The receive queue associated with this EtherType filter. It is meaningless when deleting or dropping. Example: .. code-block:: console - testpmd> get_ethertype_filter 0 index 0 + testpmd> ethertype_filter 0 add mac_ignr ethertype 0x0806 fwd queue 3 + add a rule to assign ARP packet to receive queue 3 - filter[0]: - ethertype: 0x0806 - priority: disable, 0 - queue: 3 + testpmd> ethertype_filter 0 del mac_ignr ethertype 0x0806 fwd queue 3 + delete the rule to assign ARP packet to receive queue 3 add_2tuple_filter ~~~~~~~~~~~~~~~~~ -- 1.9.3