From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] ethdev: check Rx/Tx offloads Date: Fri, 13 Apr 2018 18:31:30 +0100 Message-ID: <7148c9d5-cf94-66db-1a1f-42c522c3edc0@intel.com> References: <1517493186-6687-1-git-send-email-wei.dai@intel.com> <20180328085709.28310-1-wei.dai@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Wei Dai , thomas@monjalon.net Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 100C31C686 for ; Fri, 13 Apr 2018 19:31:35 +0200 (CEST) In-Reply-To: <20180328085709.28310-1-wei.dai@intel.com> Content-Language: en-US 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 3/28/2018 9:57 AM, Wei Dai wrote: > This patch check if a requested offloading > is supported in the device capability. > A per port offloading feature should be enabled or > disabled at same time in both rte_eth_dev_configure( ) > and rte_eth_rx_queue_setup( )/rte_eth_tx_queue_setup( ). > This patch check if a per port offloading flag has > same configuration in rte_eth_dev_configure( ) and > rte_eth_rx_queue_setup( )/rte_eth_tx_queue_setup( ). > This patch can make such checking in a common way in > rte_ethdev layer to avoid same checking in underlying PMD. > > Signed-off-by: Wei Dai > Hi Wei, I think it is good idea to move common check to the abstraction layer as much as possible. But for this case we are targeting an API change in rc2, I believe better wait that API change for this update. Thanks, ferruh