From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang, Cunming" Subject: Re: [PATCH v6 7/8] igb: enable rx queue interrupts for PF Date: Mon, 11 May 2015 13:16:02 +0800 Message-ID: <55503B12.9090307@intel.com> References: <1424710542-14637-1-git-send-email-danny.zhou@intel.com> <1425012976-10173-1-git-send-email-cunming.liang@intel.com> <1425012976-10173-8-git-send-email-cunming.liang@intel.com> <20150320155108.55f836bf@uryu.home.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BBE61C3CA for ; Mon, 11 May 2015 07:16:05 +0200 (CEST) In-Reply-To: <20150320155108.55f836bf@uryu.home.lan> 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" On 3/21/2015 4:51 AM, Stephen Hemminger wrote: > On Fri, 27 Feb 2015 12:56:15 +0800 > Cunming Liang wrote: > >> >> /* >> + * It clears the interrupt causes and enables the interrupt. >> + * It will be called once only during nic initialized. >> + * >> + * @param dev >> + * Pointer to struct rte_eth_dev. >> + * >> + * @return >> + * - On success, zero. >> + * - On failure, a negative value. >> + */ >> +static int eth_igb_rxq_interrupt_setup(struct rte_eth_dev *dev) >> +{ >> + > This function should be void > It always succeeds and the caller just not check the return value. > > If you did this in one driver, I bet other drivers have same problem. [LCM] The previous reason probably to keep consistent with lsc_interrupt_setup. But I think it's reasonable to change to void. I'm considering another thing is that does is necessary to have condition rxq_interrupt_setup by intr_conf.rxq. As even without it, we can manually turn on rxq interrupt by API rte_eth_dev_rx_intr_enable.