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 956594267F; Sat, 30 Sep 2023 08:31:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FE8040156; Sat, 30 Sep 2023 08:31:57 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id D29484003C for ; Sat, 30 Sep 2023 08:31:55 +0200 (CEST) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 28F7490; Sat, 30 Sep 2023 09:31:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 28F7490 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1696055515; bh=VXmLMled3QMvIxgDeGf5rtSeDxWpmV3XcLpn5R1IbFU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dSZCOv/s9kQyU8daqaMCPzR/iszMsxqxciqxoY0afEn37OVzW2gK4N2qB0MMVyjId hCBb+UmwMt141dSSNLYQtcNV+MYkZdasfkmKuq8dVfQnpwNqT3Z22wbWEAEs9+APWx 9mFAk6hNLfAyhA6bDEx78JtV7ZrgxW+DBn9E7VaE= Message-ID: <07db6dcf-057e-00bc-54ce-a31bc79ac95e@oktetlabs.ru> Date: Sat, 30 Sep 2023 09:31:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] net/sfc: support packet replay in transfer flows Content-Language: en-US To: Ivan Malov , dev@dpdk.org Cc: Ferruh Yigit , Andy Moreton References: <20230810182820.6365-1-ivan.malov@arknetworks.am> <20230927103605.6022-1-ivan.malov@arknetworks.am> From: Andrew Rybchenko Organization: OKTET Labs In-Reply-To: <20230927103605.6022-1-ivan.malov@arknetworks.am> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 9/27/23 13:36, Ivan Malov wrote: > Packet replay enables users to leverage multiple counters in > one flow and allows to request delivery to multiple ports. > > A given flow rule may use either one inline count action > and multiple indirect counters or just multiple indirect > counters. The inline count action (if any) must come > before the first delivery action or before the first > indirect count action, whichever comes earlier. > > These are some testpmd examples of supported > multi-count and mirroring use cases: > > flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \ > actions port_representor port_id 0 / port_representor port_id 1 / end > > or > > flow indirect_action 0 create action_id 239 transfer action count / end > > flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \ > actions count / port_representor port_id 0 / indirect 239 / \ > port_representor port_id 1 / end > > or > > flow indirect_action 0 create action_id 239 transfer action count / end > > flow create 0 transfer pattern represented_port ethdev_port_id is 0 / end \ > actions indirect 239 / port_representor port_id 0 / indirect 239 / \ > port_representor port_id 1 / end > > and the likes. > > Signed-off-by: Ivan Malov > Reviewed-by: Andy Moreton Acked-by: Andrew Rybchenko