From patchwork Fri Jul 3 02:23:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hyong Youb Kim (hyonkim)" X-Patchwork-Id: 72920 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3D60A0519; Fri, 3 Jul 2020 04:24:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 87CEC1D6CF; Fri, 3 Jul 2020 04:24:54 +0200 (CEST) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by dpdk.org (Postfix) with ESMTP id 572E91D69F for ; Fri, 3 Jul 2020 04:24:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1109; q=dns/txt; s=iport; t=1593743092; x=1594952692; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hyJf53lnQGRujbOeo390tFIRp6saVBDTe/NxTlqZ7Uo=; b=mYbAn11S+3cfSEmUMxHQEL0vCFOXIjDPPfQVJ57V6/GkUXVequWBQslG hSD5gcnJcXDix5wBRLAv4AQ3Qe5oRULGS83TPP8WF6mtSmrU9AB53faVo FXmfd7u47lMbdmQxXB01JTbWS+qe+qhr8HrhEzLh/FOOwbxOpJr5sTfSc M=; X-IronPort-AV: E=Sophos;i="5.75,306,1589241600"; d="scan'208";a="507015412" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 03 Jul 2020 02:24:51 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTP id 0632OoJY027192; Fri, 3 Jul 2020 02:24:51 GMT Received: by cisco.com (Postfix, from userid 508933) id D9C2F20F2005; Thu, 2 Jul 2020 19:24:50 -0700 (PDT) From: Hyong Youb Kim To: Ferruh Yigit Cc: dev@dpdk.org, Hyong Youb Kim , John Daley Date: Thu, 2 Jul 2020 19:23:51 -0700 Message-Id: <20200703022351.17172-3-hyonkim@cisco.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200703022351.17172-1-hyonkim@cisco.com> References: <20200703022351.17172-1-hyonkim@cisco.com> MIME-Version: 1.0 X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: rcdn-core-9.cisco.com Subject: [dpdk-dev] [PATCH 2/2] net/enic: add new flow manager actions to the dump function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" The following commit introduced several new actions. Make the dump function to print those actions. commit 6faf81f1d2c3 ("net/enic: update flow manager API") Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_fm_flow.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/enic/enic_fm_flow.c b/drivers/net/enic/enic_fm_flow.c index 10e5bb3d29..cb08a9317f 100644 --- a/drivers/net/enic/enic_fm_flow.c +++ b/drivers/net/enic/enic_fm_flow.c @@ -1421,6 +1421,13 @@ enic_fm_dump_tcam_actions(const struct fm_action *fm_action) [FMOP_ENCAP] = "encap", [FMOP_SET_OVLAN] = "set_ovlan", [FMOP_DECAP_NOSTRIP] = "decap_nostrip", + [FMOP_DECAP_STRIP] = "decap_strip", + [FMOP_POP_VLAN] = "pop_vlan", + [FMOP_SET_EGPORT] = "set_egport", + [FMOP_RQ_STEER_ONLY] = "rq_steer_only", + [FMOP_SET_ENCAP_VLAN] = "set_encap_vlan", + [FMOP_EMIT] = "emit", + [FMOP_MODIFY] = "modify", }; const struct fm_action_op *op = &fm_action->fma_action_ops[0]; char buf[128], *bp = buf;