From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix rte_intr_dp_is_en() check Date: Mon, 18 Jul 2016 11:21:14 +0200 Message-ID: <8032858.THXMY6Ofjq@xps13> References: <1468542971-48198-1-git-send-email-yongwang@vmware.com> <578C74D9.1030907@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Liang, Cunming" , david.marchand@6wind.com To: Yong Wang Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 3D6F12C07 for ; Mon, 18 Jul 2016 11:21:16 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id o80so107099094wme.1 for ; Mon, 18 Jul 2016 02:21:16 -0700 (PDT) In-Reply-To: <578C74D9.1030907@intel.com> 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 Yong, I think the interrupt management should be simpler. If you want to invest some time to rework this API, you are very welcome. 2016-07-18 14:19, Liang, Cunming: > Hi Yong, > > rte_intr_dp_is_en() returns true when rte_intr_efd_enable() (the way to > enable data-path interrupt) sets a number of event fds. > In this case, "intr_conf.rxq=1" configuration causes "nb_efd=1". The > value comes from RTE_MIN($nb_efd, 1) from data-path, but not from link > event. > Per link event, you shouldn't use rte_intr_dp_is_en() as the indication. > As igb_uio only has a single vector, when the conflict(both intr_rxq and > intr_lsc turn on) happens, the intr_rxq has high priority than intr_lsc > as default PMD behavior. > Reference as PG 3.1.9 note in > http://dpdk.org/doc/guides/prog_guide/env_abstraction_layer.html > > Regards, > Cunming > > On 7/15/2016 8:36 AM, Yong Wang wrote: > > When binding a device to igb_uio with intr_conf.rxq set to 1, nb_efd > > is 1 (for link event) but rte_intr_dp_is_en() will still return true. > > rte_intr_dp_is_en() should also consider intr_handle type in addition > > to nb_efd. > > > > Signed-off-by: Yong Wang