Message ID | 20210121114821.26495-3-elder@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp493584jam; Thu, 21 Jan 2021 03:50:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNF7uSwg7HoLgC32L7U8JtHZ6HAqs5DUO7iXszbicOxEXxyCEAq8u7niS3yMURppTptHzj X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr10759366edt.160.1611229846522; Thu, 21 Jan 2021 03:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611229846; cv=none; d=google.com; s=arc-20160816; b=z+dlYMLjptkRj3o1R7xQ8QE6JOnnT6QT88FF8JiuLJd2Uwm1edXScKkaKTegi4u+xh c9buMembOIbbvtPuCoySE8CSKT5+x1YYOXn/c/BLIpzqHXRz9Z04NQSZ4IiO2RednjJB T/w6J6Wz9hc1A9GXySJm4D5yzEeY8ooW5wANiFBuKzRWA0DQrSsaD6JgHwcKO4iOYIYv 6lyPAvM51MvM1Dz/swAXeqXjvO0YMa//3SCenJ3Yv4HH2X3Uf5xJKL5ITgoaXCl2HXNJ 1px6AUSDudcnPner5RWfJwlz+pIpbEkGNqC/azoVMZV9MI8EDXCIhSw6d9nytKq7Bpsx BMMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m6e39kAfCJQxvEQdmc/oDMA8MTPHe7FkK1dKGoyuSSk=; b=GBXrYjA+yN6zrJi/PBAmIiTfRx34CYJiBQq33JhMxKPW+unbECq/j5NKyXOl27D+1Y 4FdQxnUybraLQ6ZlPK5lfL7EGZdXnVXbt5N6Dd8FupK2RdvDuU4aZOtG44abGHcWy06P JU0e+t8ZAJSeXBEtq8CZJTXLLgiHvwRk+j5e98e9fDx2zZ0KbyyaKhFO+of4Fg1pwLVP XgC66FVLn9T6YYaDaENEeg3LoEeabFwXqaIgBz34MzZqcNn7Glux98BQH+jPAxxrGVDa la8es34fohtocIV9u4hnCIYusxOS0xNs2D+n6KNmU7vS3N0faio+Y+M26ML19TU36piJ 04dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MjUzmMnM; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a59si2205348edf.278.2021.01.21.03.50.45; Thu, 21 Jan 2021 03:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MjUzmMnM; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730830AbhAULtv (ORCPT <rfc822;patch@linaro.org> + 7 others); Thu, 21 Jan 2021 06:49:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730787AbhAULtI (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 21 Jan 2021 06:49:08 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814D0C0613D3 for <netdev@vger.kernel.org>; Thu, 21 Jan 2021 03:48:27 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id d81so3378547iof.3 for <netdev@vger.kernel.org>; Thu, 21 Jan 2021 03:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m6e39kAfCJQxvEQdmc/oDMA8MTPHe7FkK1dKGoyuSSk=; b=MjUzmMnMtHugryAIUP4qnuXUMxstLxIJX3Q+4cRAvZpPbzivp4cKamS40MFmnssASk X243ad1D3Mckag/zUAt/PRurHnU22NTJsGnWe/gXJ9Hc3Fzaoy7UGu/KX83gEv2GxerW ocmhpFeDtvN1ZGWZWYgNsGLW8+f1N7UjY+LZ8kVqVfLNQRjgvPeP6CfQea3YTQa0KueB BikLPLzmiIEkDg4dbXxPFFHPcAvfdTl0wnM3tr0mRpjUG5UEu+5F2gNk8vb6iCNjXkw/ eK0XigvItjIV89cY6zUqQkROjEvkhyFbRiKtwSO7ulm/Wu0RJsbqjlJxsn6Hovd24xjq 28kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m6e39kAfCJQxvEQdmc/oDMA8MTPHe7FkK1dKGoyuSSk=; b=mtWiwdnCH/ahfftXQMohKBFwpN8BbTLytZSB2qFN6f1mstYMDVmEhRLJw9jOre/iYf nmjQzIf8t+n9n7bMp0pJm10vczFaDwa6ifkI11XnFtDam/2GwqFMuwrZrAkrwMQtpYOp x1hZrHZpvz1FkmDUqXIAzTmyFFMRDefmxNi28onkyetM6QhfWMGpBzH8Jq87GpLdsQHg ZBn1RPF6rBPhWQhay0XBTkDSAAjhBjyPdteGRVXlSY5XPl33gFUXM1EeyYrs8sY10hNZ 4qZfCPTugEhY2upb14jbCUstNfNoABRFxxYW6CLrUrqLOwIhzf3+IzSlC6vPpbnJuqoT IzNQ== X-Gm-Message-State: AOAM532uiWHDOOjqlQ3RFMWg7JZ8FUOvIP6GiRg0CcPgshYTkCb6TC04 fP2w72lIqFAbg+VRfHRc9jxQeA== X-Received: by 2002:a5e:8812:: with SMTP id l18mr10088840ioj.149.1611229706989; Thu, 21 Jan 2021 03:48:26 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id p5sm2762766ilm.80.2021.01.21.03.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 03:48:26 -0800 (PST) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 2/5] net: ipa: heed napi_complete() return value Date: Thu, 21 Jan 2021 05:48:18 -0600 Message-Id: <20210121114821.26495-3-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210121114821.26495-1-elder@linaro.org> References: <20210121114821.26495-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
net: ipa: NAPI poll updates
|
expand
|
diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index 56a5eb61b20c4..634f514e861e7 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c @@ -1555,10 +1555,8 @@ static int gsi_channel_poll(struct napi_struct *napi, int budget) gsi_trans_complete(trans); } - if (count < budget) { - napi_complete(&channel->napi); + if (count < budget && napi_complete(napi)) gsi_irq_ieob_enable(channel->gsi, channel->evt_ring_id); - } return count; }
Pay attention to the return value of napi_complete(), completing polling only if it returns true. Just use napi rather than &channel->napi as the argument passed to napi_complete(). Signed-off-by: Alex Elder <elder@linaro.org> --- drivers/net/ipa/gsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.20.1