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 A88BAA034E; Fri, 5 Jun 2020 17:05:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 860B11C2E8; Fri, 5 Jun 2020 17:05:17 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 64F0A1BFF1 for ; Fri, 5 Jun 2020 17:05:16 +0200 (CEST) IronPort-SDR: 3orc6jYQ3/g3jr8+WMg3W4k8++FVmMV+h/ZWgSG2Jc/VgEMfb7zFOI1LvnquWWcVgJMUbTHIvh zGUdgo3pdCVw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 08:04:40 -0700 IronPort-SDR: tDy5Xc+395v1Gkp5cqVOH6s1I5767BrqApGHBrlBTyXNpBXKYORatZ5UpxiRGHF1FVAAfJL3Vc NvSbtPWZ95HQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,476,1583222400"; d="scan'208";a="259205757" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.116.183]) by fmsmga008.fm.intel.com with ESMTP; 05 Jun 2020 08:04:39 -0700 Date: Fri, 5 Jun 2020 22:56:34 +0800 From: Ye Xiaolong To: Ting Xu Cc: dev@dpdk.org, qi.z.zhang@intel.com, qiming.yang@intel.com, john.mcnamara@intel.com, marko.kovacevic@intel.com Message-ID: <20200605145633.GB6524@intel.com> References: <20200605201737.33766-1-ting.xu@intel.com> <20200605201737.33766-4-ting.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200605201737.33766-4-ting.xu@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH v1 03/12] net/ice: complete dev configure in DCF 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" On 06/05, Ting Xu wrote: >From: Qi Zhang > >Enable device configuration function in DCF. > >Signed-off-by: Qi Zhang >--- > drivers/net/ice/ice_dcf_ethdev.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c >index 7f24ef81a..e8bed1362 100644 >--- a/drivers/net/ice/ice_dcf_ethdev.c >+++ b/drivers/net/ice/ice_dcf_ethdev.c >@@ -59,6 +59,15 @@ ice_dcf_dev_stop(struct rte_eth_dev *dev) > static int > ice_dcf_dev_configure(__rte_unused struct rte_eth_dev *dev) __rte_unused tag should be removed. > { >+ struct ice_dcf_adapter *dcf_ad = dev->data->dev_private; >+ struct ice_adapter *ad = &dcf_ad->parent; >+ >+ ad->rx_bulk_alloc_allowed = true; >+ ad->tx_simple_allowed = true; >+ >+ if (dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG) >+ dev->data->dev_conf.rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH; >+ > return 0; > } > >-- >2.17.1 >