From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9DD7CA034F; Wed, 31 Mar 2021 14:06:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57F86140E88; Wed, 31 Mar 2021 14:06:01 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 741B9406A3 for ; Wed, 31 Mar 2021 14:05:59 +0200 (CEST) IronPort-SDR: OEgTJ5uQAndDqXwGAJrirFU87tQw62kqhRyl/PkgI2yyg1adfyJEnomIw1B+2VWKCzbFDFMBmH pMOhK9kTfsPQ== X-IronPort-AV: E=McAfee;i="6000,8403,9939"; a="172019268" X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="172019268" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2021 05:05:58 -0700 IronPort-SDR: OZww5MoXKFPbOkchoqWMkz9QoUidpCakGjr/OGggtSKtAxouRHbNIZLg7A9acEcT15FuFd1pgL NYnjgR1JMZjw== X-IronPort-AV: E=Sophos;i="5.81,293,1610438400"; d="scan'208";a="445656396" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.249.9]) ([10.213.249.9]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2021 05:05:57 -0700 To: Salem Sol , dev@dpdk.org Cc: Xiaoyun Li , Thomas Monjalon References: <20210317092610.71000-1-salems@nvidia.com> <20210317092610.71000-7-salems@nvidia.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Wed, 31 Mar 2021 13:05:53 +0100 MIME-Version: 1.0 In-Reply-To: <20210317092610.71000-7-salems@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v3 6/8] doc: update sample actions support in testpmd guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 3/17/2021 9:26 AM, Salem Sol wrote: > Update documentation for sample action usage in testpmd utilizing > rte_flow_action_vxlan_encap and rte_flow_action_nvgre_encap and > show the command line example. > This patch has dependency to [1], right, can you please confirm it? [1]: https://patches.dpdk.org/project/dpdk/patch/1617180669-225007-1-git-send-email-jiaweiw@nvidia.com/ > Signed-off-by: Salem Sol > --- > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 22 +++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > index 3a31cc6237..392e3a31cf 100644 > --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst > +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > @@ -4901,6 +4901,28 @@ and also mirrored the packets with encapsulation header and sent to port id 0. > testpmd> flow create 0 ingress transfer pattern eth / end actions > sample ratio 1 index 0 / port_id id 2 / end > > +E-Switch Mirroring rule, the matched ingress packets are sent to port id 2, > +and also mirrored the packets with VXLAN encapsulation header and sent to port id 0. > + Similar comment on 'E-Switch', the mirroring is generic feature but 'E-Switch' is vendor specific, can you please update testpmd in a generic way? > +:: > + > + testpmd> set vxlan ip-version ipv4 vni 4 udp-src 4 udp-dst 4 ip-src 127.0.0.1 > + ip-dst 128.0.0.1 eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22 > + testpmd> set sample_actions 0 vxlan_encap / port_id id 0 / end > + testpmd> flow create 0 ingress transfer pattern eth / end actions > + sample ratio 1 index 0 / port_id id 2 / end > + > +E-Switch Mirroring rule, the matched ingress packets are sent to port id 2, > +and also mirrored the packets with NVGRE encapsulation header and sent to port id 0. > + > +:: > + > + testpmd> set nvgre ip-version ipv4 tni 4 ip-src 127.0.0.1 ip-dst 128.0.0.1 > + eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22 > + testpmd> set sample_actions 0 nvgre_encap / port_id id 0 / end > + testpmd> flow create 0 ingress transfer pattern eth / end actions > + sample ratio 1 index 0 / port_id id 2 / end > + > BPF Functions > -------------- > >