Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2273734pxb; Thu, 11 Feb 2021 08:24:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxzkBKZA9pnUyqeTgVPrHkgpuF6+lAs0hQQHodlKmiEXzV9IwyrTOwDm0lsmSnNUymrfZ0 X-Received: by 2002:a05:6402:26d3:: with SMTP id x19mr9059077edd.0.1613060684490; Thu, 11 Feb 2021 08:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613060684; cv=none; d=google.com; s=arc-20160816; b=ZXQAZGtrzGvYayM1npjXPKbXP2EJoCY/b1/IixwxgIT0/0qWxyVfQJnCO++jcfGKqA /A0Pd0VhgO4mlSQyHyPmqBMZaN0VBxLUydRiYmIvy9tDO0Jpx413ml46V/8oHxxIvbjW Hy4NkvuETatbmMVyfYBm20WaFyD9CCGd9ipB+nk86qBFiF9kQcMa/c4TEuHs4HoH9yNd ysxhUNGw70E3S7z2PuUHh78UNc49s4niwDZmmgQfVcS19QCjEkB04rRNMfKNEkMDW5jN VVFWt9kGunCqbheNw6djEeaU65Q7Q7mkj3JO6limrfNaTdC6bdWjI5Po31H7gO6GT7RH 4Fug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=r73cmlC1j2cHDWraNmDzLtHimsKfOTe23uRKBUQvTXY=; b=eNjdHNDXai3Jv0IbpVTC/9ouZqAIbO9SeKvCup1ppcGtOIm0/P2FRnlCnsvsWcahS2 ukfYR0cfWznIYomBWHlrs8B08JCJ+2VWnJ23ybQKdqCozBDaLVEE8mS+U3p9heAYCCOJ 9dnqxsB5Hok9YYZUhDPQHwEO5/HBkn4Zpp7R5yP4JNnl9yq/CFc2WiHNI3eEbEUsfwaK 6tj2imnVNMTUK1s9WHXtAGFd4YU+wjIKaDJNAz0/knsLJVgWlhlhU9c6wu/TdOYIijlz JoFEamMlq55rkvTgzDUa96WvG/lMJXHQEmAweKo3vFNwAfiS62VBUTa0decyj5Oi9soi tBVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp19si3839921ejc.733.2021.02.11.08.24.20; Thu, 11 Feb 2021 08:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbhBKQXV (ORCPT + 99 others); Thu, 11 Feb 2021 11:23:21 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:33562 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230365AbhBKPYx (ORCPT ); Thu, 11 Feb 2021 10:24:53 -0500 Received: by mail-wr1-f50.google.com with SMTP id 7so4601782wrz.0; Thu, 11 Feb 2021 07:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r73cmlC1j2cHDWraNmDzLtHimsKfOTe23uRKBUQvTXY=; b=RZQN5nMovh/qjggaZkLfWtEGAYH+4Hhxg+uE++JXkd71lRZPbj7QwqaUMeRscBeDwu FfEvBKXTDVnQ7SfEzgjIU+vFYVxLbPvPoMbsk2ur2J0MyJj2jT3dn4TvZirSpjGP4yQ+ Qbf4eJUqBls4KnpkkwUNT/Ted3iluR2MiZV9Pf64V3DYq03QvBjLcFRd5GvCzhHucLse zmKC5DZYOxPI8uLW18nTWk4yeW6u3OEY64cU7nwFcod1R72uMEbdT1D1CqRBy17JcFhe RwIjoeGHYYVz3N3A6wIgrIIGfyu4TUefYr3JFHNMHPCPt8Ns0qd+x0eyTuRTJYV3SuFN oogQ== X-Gm-Message-State: AOAM532+FqK66rpCooZ0PxjDbQsxyGHnJAQns+nx0gIEsSwl5j3mSBWT 3hNwiAGEc90IszEX63AbKY8XW7Ihx3Y= X-Received: by 2002:adf:9bcf:: with SMTP id e15mr6042718wrc.276.1613057051742; Thu, 11 Feb 2021 07:24:11 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id c5sm5469871wrn.77.2021.02.11.07.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 07:24:11 -0800 (PST) Date: Thu, 11 Feb 2021 15:24:09 +0000 From: Wei Liu To: Juergen Gross Cc: xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Liu , Paul Durrant , "David S. Miller" , Jakub Kicinski Subject: Re: [PATCH v2 4/8] xen/netback: fix spurious event detection for common event case Message-ID: <20210211152409.knullq66jv3bkis2@liuwe-devbox-debian-v2> References: <20210211101616.13788-1-jgross@suse.com> <20210211101616.13788-5-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210211101616.13788-5-jgross@suse.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 11:16:12AM +0100, Juergen Gross wrote: > In case of a common event for rx and tx queue the event should be > regarded to be spurious if no rx and no tx requests are pending. > > Unfortunately the condition for testing that is wrong causing to > decide a event being spurious if no rx OR no tx requests are > pending. > > Fix that plus using local variables for rx/tx pending indicators in > order to split function calls and if condition. > > Fixes: 23025393dbeb3b ("xen/netback: use lateeoi irq binding") > Signed-off-by: Juergen Gross Reviewed-by: Wei Liu