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 1286DA0350; Fri, 28 Jan 2022 18:58:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0BDD42796; Fri, 28 Jan 2022 18:58:34 +0100 (CET) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by mails.dpdk.org (Postfix) with ESMTP id 3459D40041 for ; Fri, 28 Jan 2022 18:58:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1492; q=dns/txt; s=iport; t=1643392713; x=1644602313; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RwefjWnUJWKF1xSBViPB97nEYjfiwRjSJCVdTL6aAkI=; b=NAQ4CdPTQNXJYbAaV+rVEgpyE/XFw1xLtCK7tbu8JZzgINm7lFkoveQc 2ihrldMA+dQeh/llH0UscHx+xeZrpVzotM5v6EsMtLuN3GIE0z/DCfZxt vAA8wDH9Okz/pXAUAXk56qlEckVH6Jmv6Poy2HUnAFxdM3W9Sb/ZXzg1L I=; X-IronPort-AV: E=Sophos;i="5.88,324,1635206400"; d="scan'208";a="806796058" Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 28 Jan 2022 17:58:32 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTP id 20SHwWJC017688; Fri, 28 Jan 2022 17:58:32 GMT Received: by cisco.com (Postfix, from userid 392789) id 075B620F2003; Fri, 28 Jan 2022 09:58:32 -0800 (PST) From: John Daley To: ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Subject: [PATCH v4 2/3] net/enic: update VIC firmware API Date: Fri, 28 Jan 2022 09:58:12 -0800 Message-Id: <20220128175813.20775-2-johndale@cisco.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220128175813.20775-1-johndale@cisco.com> References: <20220127191029.30793-1-johndale@cisco.com> <20220128175813.20775-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-9.cisco.com 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 Update the configuration structure used between the adapter and driver. The structure is compatible with all Cisco VIC adapters. Signed-off-by: John Daley Reviewed-by: Hyong Youb Kim --- drivers/net/enic/base/vnic_enet.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/enic/base/vnic_enet.h b/drivers/net/enic/base/vnic_enet.h index 2a97a33044..66261d9127 100644 --- a/drivers/net/enic/base/vnic_enet.h +++ b/drivers/net/enic/base/vnic_enet.h @@ -31,6 +31,28 @@ struct vnic_enet_config { uint32_t rdma_mr_id; uint32_t rdma_mr_count; uint32_t max_pkt_size; + uint16_t vf_subvnic_count; + uint16_t mq_subvnic_count; + uint32_t mq_flags; + + /* the following 3 fields are per-MQ-vnic counts */ + uint32_t mq_rdma_mr_count; + uint16_t mq_rdma_qp_count; + uint16_t mq_rdma_resgrp; + + uint16_t rdma_max_sq_ring_sz; + uint16_t rdma_max_rq_ring_sz; + uint32_t rdma_max_cq_ring_sz; + uint16_t rdma_max_wr_sge; + uint16_t rdma_max_mr_sge; + uint8_t rdma_max_rd_per_qp; + uint8_t unused; /* available */ + uint16_t mq_rdma_engine_count; + uint32_t intr_coal_tick_ns; /* coalescing timer tick in nsec */ + uint32_t max_rq_ring; /* MAX RQ ring size */ + uint32_t max_wq_ring; /* MAX WQ ring size */ + uint32_t max_cq_ring; /* MAX CQ ring size */ + uint32_t rdma_rsvd_lkey; /* Reserved (privileged) LKey */ }; #define VENETF_TSO 0x1 /* TSO enabled */ -- 2.33.1