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 B09DCA00C3; Fri, 14 Jan 2022 04:11:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A32BD42757; Fri, 14 Jan 2022 04:11:24 +0100 (CET) Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) by mails.dpdk.org (Postfix) with ESMTP id E8F3840DDD for ; Fri, 14 Jan 2022 04:11:22 +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=1642129883; x=1643339483; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RwefjWnUJWKF1xSBViPB97nEYjfiwRjSJCVdTL6aAkI=; b=i0LBvRm81cQ6sFJerjXwhwHCyoVvpmXfKkNARaMRyRhYZ7Ay+PviUr3G mClqudHkU0cAMbstK0M3yXS7MG4WPbdEzmhQiCnDSQXgYPwAB1VkJDJK0 8AcwFglj2jql/j5dP0vHtJsdwRrLq4MUchdvXh5/JfLY+j3lxYZ21+us1 w=; X-IronPort-AV: E=Sophos;i="5.88,287,1635206400"; d="scan'208";a="816888856" Received: from alln-core-9.cisco.com ([173.36.13.129]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 14 Jan 2022 03:11:22 +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 20E3BLFU010459; Fri, 14 Jan 2022 03:11:22 GMT Received: by cisco.com (Postfix, from userid 392789) id C59CD20F2003; Thu, 13 Jan 2022 19:11:21 -0800 (PST) From: John Daley To: ferruh.yigit@intel.com, arybchenko@solarflare.com Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Subject: [PATCH 2/3] net/enic: update VIC firmware API Date: Thu, 13 Jan 2022 19:10:35 -0800 Message-Id: <20220114031036.19052-3-johndale@cisco.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220114031036.19052-1-johndale@cisco.com> References: <20220114031036.19052-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