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 9281C42808; Mon, 27 Mar 2023 13:32:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A18640EE1; Mon, 27 Mar 2023 13:32:13 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id DB79240ED8; Mon, 27 Mar 2023 13:32:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679916732; x=1711452732; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tXZYZyx0r73UBz8/NVZK89/Pk3qU39kOcivstUSjBaQ=; b=iK6lGd6QqwWTvN8klwjbL7WVxaGoywexPhbV2+aGUzRmJjD2VbxzzDwD 8ZhiD3NLFKjgOEch8/B2lMZ0KvPHn7y8A/bb6wKr5n48qDD1WGO72kvRw kj2C+9Exz38vfpJlJ7YOOjTjkWT5gZzVvpquDg5oS0P3WbE/iRjcS8AN3 cB+gpF61Ytim/unHr1gXzPLGFNw4+S42YRX7DJfsnChfO9VhN4ICruppA cDLiWMXbJ04iYXnn9JOXp5VZD1yo5ERPDqcfyEL4jo2NW2zXLbDG/v3no nQyMRGWzwwI8tsExpcWA8bFJhKVCU/m1ZigmQ+L9oMGCHN+cw3w2yoX5+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="367987522" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="367987522" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 04:32:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="683437424" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="683437424" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by orsmga002.jf.intel.com with ESMTP; 27 Mar 2023 04:32:09 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , stable@dpdk.org Subject: [PATCH] doc: fix dcf instructions Date: Mon, 27 Mar 2023 15:44:43 -0400 Message-Id: <20230327194443.3031232-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Replace the deprecated VF action with the represented_port action. Fixes: 776c119736e7 ("net/ice: remove deprecated VF flow action") Cc: stable@dpdk.org Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 70e19c3318..f3d3540992 100644 --- a/doc/guides/nics/ice.rst +++ b/doc/guides/nics/ice.rst @@ -343,18 +343,18 @@ Additional Options ip link set dev enp24s0f0 vf 0 trust on -#. Bind the VF0, and run testpmd with 'cap=dcf' devarg:: +#. Bind the VF0, and run testpmd with 'cap=dcf' with port representor for VF 1 and 2:: - dpdk-testpmd -l 22-25 -n 4 -a 18:01.0,cap=dcf -- -i + dpdk-testpmd -l 22-25 -n 4 -a 18:01.0,cap=dcf,representor=vf[1-2] -- -i #. Monitor the VF2 interface network traffic:: tcpdump -e -nn -i enp24s1f2 -#. Create one flow to redirect the traffic to VF2 by DCF:: +#. Create one flow to redirect the traffic to VF2 by DCF(assume the representor port id is 5):: flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 \ - dst is 192.168.0.3 / end actions vf id 2 / end + dst is 192.168.0.3 / end actions represented_port ethdev_port_id 5 / end #. Send the packet, and it should be displayed on tcpdump:: -- 2.31.1