From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang, Cunming" Subject: Re: [PATCH v2 07/11] ixgbevf: cleanup unnecessary interrupt handler Date: Wed, 4 Nov 2015 09:37:34 +0800 Message-ID: <5639615E.1010304@intel.com> References: <1443072831-19065-1-git-send-email-cunming.liang@intel.com> <1446182873-28814-1-git-send-email-cunming.liang@intel.com> <1446182873-28814-8-git-send-email-cunming.liang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" To: David Marchand Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D49F95A64 for ; Wed, 4 Nov 2015 02:38:08 +0100 (CET) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi David, On 11/3/2015 12:06 AM, David Marchand wrote: > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > >> As ixgbe vf doesn't support lsc, the patch removes those unused code. >> In addition, it does some tiny cleanup. >> > Please, can you describe this tiny cleanup ? > Did it trigger some bug ? It causes confusing to enable/allocate efd with a zero number of vector. But this piece of code shall be merged in a different patch. Thanks. >> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c >> b/drivers/net/ixgbe/ixgbe_ethdev.c >> index 366923f..794171c 100644 >> --- a/drivers/net/ixgbe/ixgbe_ethdev.c >> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c >> [snip] >> @@ -3492,11 +3442,11 @@ ixgbevf_dev_start(struct rte_eth_dev *dev) >> ixgbevf_dev_rxtx_start(dev); >> >> /* check and configure queue intr-vector mapping */ >> - if (dev->data->dev_conf.intr_conf.rxq != 0) >> + if (dev->data->dev_conf.intr_conf.rxq != 0) { >> intr_vector = dev->data->nb_rx_queues; >> - >> - if (rte_intr_efd_enable(intr_handle, intr_vector)) >> - return -1; >> + if (rte_intr_efd_enable(intr_handle, intr_vector)) >> + return -1; >> + } >> >> >