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 60EDC440F2; Tue, 28 May 2024 10:18:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C32DC4068E; Tue, 28 May 2024 10:17:55 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id 6F63F402E4 for ; Tue, 28 May 2024 10:17:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716884275; x=1748420275; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wQqwYZq2/CdUAJVXp0N2DQ4CozwdyfwKiel4k6DrkD0=; b=gKC/tCyrMYkj6aeywHEogiIyrjbAM6I9QC8Mbbedwwj7K3vQKIxxHEEF biEm0hgLlpHoKLhcMQ42ZHoXGkn35/AvG4CEnd+Y7TowmQ7tteOEkQs87 x2syGxYia60+qELfPB4fEg/+Oz+towrVaGg2SDN1IXaWxllCZ2WE6SOlC z7jQAR2LWVdAcCdn4Elfo1HxJRH/v5YHnpvhSpK3WkNsujeP3nL+5knN4 ft62R80BezmkAB/zzo3WP3QLc4BRARwjrq0QDXi7ZIHZVxme59dMHAUAt 4tMue6Oe7rfUJ+NrF4nMUaD4KZOfau5iGUtX3+u9iw7H44HCtNTBRSNd6 g==; X-CSE-ConnectionGUID: IyAJe0N4SH2HgwHWBO3XfA== X-CSE-MsgGUID: aLoHW3a1R+y6rv/YjagFcA== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="24341022" X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="24341022" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 01:17:53 -0700 X-CSE-ConnectionGUID: TLhU2OWbQRyeNvcEk/ngnA== X-CSE-MsgGUID: +ApELI0SRpOh/ffr+1DWRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,194,1712646000"; d="scan'208";a="66199144" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa001.fm.intel.com with ESMTP; 28 May 2024 01:17:52 -0700 From: Soumyadeep Hore To: jingjing.wu@intel.com Cc: dev@dpdk.org Subject: [PATCH 20/25] net/cpfl: updating cpfl based on latest base driver Date: Tue, 28 May 2024 07:36:25 +0000 Message-ID: <20240528073630.867131-1-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 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 Based on latest implemenation of struct VIRTCHNL_QUEUE_TYPE_RX in virtchnl2.h, qg_info field is removed and its members are added in the above mentioned structure. Hence updating the same. Signed-off-by: Soumyadeep Hore --- drivers/net/cpfl/cpfl_ethdev.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c index 7e718e9e19..e707043bf7 100644 --- a/drivers/net/cpfl/cpfl_ethdev.c +++ b/drivers/net/cpfl/cpfl_ethdev.c @@ -2393,18 +2393,18 @@ cpfl_p2p_q_grps_add(struct idpf_vport *vport, int ret; p2p_queue_grps_info->vport_id = vport->vport_id; - p2p_queue_grps_info->qg_info.num_queue_groups = CPFL_P2P_NB_QUEUE_GRPS; - p2p_queue_grps_info->qg_info.groups[0].num_rx_q = CPFL_MAX_P2P_NB_QUEUES; - p2p_queue_grps_info->qg_info.groups[0].num_rx_bufq = CPFL_P2P_NB_RX_BUFQ; - p2p_queue_grps_info->qg_info.groups[0].num_tx_q = CPFL_MAX_P2P_NB_QUEUES; - p2p_queue_grps_info->qg_info.groups[0].num_tx_complq = CPFL_P2P_NB_TX_COMPLQ; - p2p_queue_grps_info->qg_info.groups[0].qg_id.queue_group_id = CPFL_P2P_QUEUE_GRP_ID; - p2p_queue_grps_info->qg_info.groups[0].qg_id.queue_group_type = VIRTCHNL2_QUEUE_GROUP_P2P; - p2p_queue_grps_info->qg_info.groups[0].rx_q_grp_info.rss_lut_size = 0; - p2p_queue_grps_info->qg_info.groups[0].tx_q_grp_info.tx_tc = 0; - p2p_queue_grps_info->qg_info.groups[0].tx_q_grp_info.priority = 0; - p2p_queue_grps_info->qg_info.groups[0].tx_q_grp_info.is_sp = 0; - p2p_queue_grps_info->qg_info.groups[0].tx_q_grp_info.pir_weight = 0; + p2p_queue_grps_info->num_queue_groups = CPFL_P2P_NB_QUEUE_GRPS; + p2p_queue_grps_info->groups[0].num_rx_q = CPFL_MAX_P2P_NB_QUEUES; + p2p_queue_grps_info->groups[0].num_rx_bufq = CPFL_P2P_NB_RX_BUFQ; + p2p_queue_grps_info->groups[0].num_tx_q = CPFL_MAX_P2P_NB_QUEUES; + p2p_queue_grps_info->groups[0].num_tx_complq = CPFL_P2P_NB_TX_COMPLQ; + p2p_queue_grps_info->groups[0].qg_id.queue_group_id = CPFL_P2P_QUEUE_GRP_ID; + p2p_queue_grps_info->groups[0].qg_id.queue_group_type = VIRTCHNL2_QUEUE_GROUP_P2P; + p2p_queue_grps_info->groups[0].rx_q_grp_info.rss_lut_size = 0; + p2p_queue_grps_info->groups[0].tx_q_grp_info.tx_tc = 0; + p2p_queue_grps_info->groups[0].tx_q_grp_info.priority = 0; + p2p_queue_grps_info->groups[0].tx_q_grp_info.is_sp = 0; + p2p_queue_grps_info->groups[0].tx_q_grp_info.pir_weight = 0; ret = idpf_vc_queue_grps_add(vport, p2p_queue_grps_info, p2p_q_vc_out_info); if (ret != 0) { @@ -2423,13 +2423,13 @@ cpfl_p2p_queue_info_init(struct cpfl_vport *cpfl_vport, struct virtchnl2_queue_reg_chunks *vc_chunks_out; int i, type; - if (p2p_q_vc_out_info->qg_info.groups[0].qg_id.queue_group_type != + if (p2p_q_vc_out_info->groups[0].qg_id.queue_group_type != VIRTCHNL2_QUEUE_GROUP_P2P) { PMD_DRV_LOG(ERR, "Add queue group response mismatch."); return -EINVAL; } - vc_chunks_out = &p2p_q_vc_out_info->qg_info.groups[0].chunks; + vc_chunks_out = &p2p_q_vc_out_info->groups[0].chunks; for (i = 0; i < vc_chunks_out->num_chunks; i++) { type = vc_chunks_out->chunks[i].type; -- 2.43.0