From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E601FA057B; Wed, 15 Apr 2020 03:07:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C59141D417; Wed, 15 Apr 2020 03:07:30 +0200 (CEST) Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by dpdk.org (Postfix) with ESMTP id D31F21D417 for ; Wed, 15 Apr 2020 03:07:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1824; q=dns/txt; s=iport; t=1586912849; x=1588122449; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pctgMlUmbXWnTpxPpbCSpclf+uVPZ/CaTuKBrFFk5lU=; b=efrhpMUUzObfh7wWjs9ag+LHKzVef5HmM9HJNmhll5vZ5BqW4/420aGc h2QrbFPcBtAzgNS0bxUO2Pr7+dCQARDoZ49lJh33UpEQMXkPtx9uo3qq7 MRL81/ClffoP3sMdpjTbb/rmMbVx1m8znJoSLW7LCRZa9c8lZ3KtD4JWw k=; X-IronPort-AV: E=Sophos;i="5.72,385,1580774400"; d="scan'208";a="501675318" Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 15 Apr 2020 01:07:27 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTP id 03F17RsJ012939; Wed, 15 Apr 2020 01:07:27 GMT Received: by cisco.com (Postfix, from userid 392789) id 97D1520F2003; Tue, 14 Apr 2020 18:07:27 -0700 (PDT) From: John Daley To: ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Date: Tue, 14 Apr 2020 18:06:38 -0700 Message-Id: <20200415010641.5195-2-johndale@cisco.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200415010641.5195-1-johndale@cisco.com> References: <20200415010641.5195-1-johndale@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: alln-core-6.cisco.com Subject: [dpdk-dev] [PATCH 2/5] net/enic: flow manager API update 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" Update the VIC Flow Manager API. The extentions will allow support for: - Decap and strip VLAN - Remove outer VLAN - Set Egress port - Set VLAN when replicating encapped packets - RSS queue ranges on outer header Signed-off-by: John Daley Reviewed-by: Hyong Youb Kim --- drivers/net/enic/base/vnic_flowman.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/net/enic/base/vnic_flowman.h b/drivers/net/enic/base/vnic_flowman.h index 49f743f5fb..81e2cff1b0 100644 --- a/drivers/net/enic/base/vnic_flowman.h +++ b/drivers/net/enic/base/vnic_flowman.h @@ -236,6 +236,20 @@ enum { FMOP_SET_OVLAN, /* Decap when vlan_strip is off */ FMOP_DECAP_NOSTRIP, + /* Decap and strip VLAN */ + FMOP_DECAP_STRIP, + /* Remove outer VLAN */ + FMOP_POP_VLAN, + /* Set Egress port */ + FMOP_SET_EGPORT, + /* Steer to an RQ without entering EMIT state */ + FMOP_RQ_STEER_ONLY, + /* Set VLAN when replicating encapped packets */ + FMOP_SET_ENCAP_VLAN, + /* Enter EMIT state */ + FMOP_EMIT, + /* Enter MODIFY state */ + FMOP_MODIFY, FMOP_OP_MAX, }; @@ -260,12 +274,16 @@ struct fm_action_op { uint8_t template_len; } __rte_packed encap; struct { - uint32_t rq_index; + uint16_t rq_index; + uint16_t rq_count; uint64_t vnic_handle; } __rte_packed rq_steer; struct { uint16_t vlan; } __rte_packed ovlan; + struct { + uint16_t vlan; + } __rte_packed set_encap_vlan; struct { uint16_t mark; } __rte_packed mark; @@ -278,6 +296,9 @@ struct fm_action_op { struct { uint64_t handle; } __rte_packed exact; + struct { + uint32_t egport; + } __rte_packed set_egport; } __rte_packed; } __rte_packed; -- 2.22.0