Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp49853imu; Thu, 8 Nov 2018 14:34:39 -0800 (PST) X-Google-Smtp-Source: AJdET5cdWN3XaHPNJIUakgpxooMF6tXIDYpffHhyodXoC3oW22xxViDyi82kICqIXKa8jGM65jg1 X-Received: by 2002:a17:902:b498:: with SMTP id y24-v6mr6531534plr.179.1541716479017; Thu, 08 Nov 2018 14:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716478; cv=none; d=google.com; s=arc-20160816; b=namCqKEkM5U3lKdmKpYoyX/SWBktB9jpJ+Qw4JC02xjBzfJP/v0lxWTD6wEoh7vjSa HLPMwnvBQJhJZjgL1julLXCO7ShCgS7qdbnU0wrcIOu49zTMmU2cv/cOhuct9FG5nfnh dXVrY2P2GQz3vAPRurAxynWMV1WWMyHWXkftRV0uouUDBeKt6o89m47cU8MIktGE/zRl PaPm+G4Cfef8jGSQm2VpOlz57IlxcNNpDTwHdYtuIE20FrZn3vuHGlHcf36sVTMY/hh7 wX3PaWXO7PJMe41KESDnURcGm1CZOp9mTTpMVsgWBCubp4KGnGL+qlq9PqSWSG4hrrnG saQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=seQEZVBrye04lKKBfM4s7vCb2XBvKBcs+Efv0HpBys8=; b=PYf/mAbICh/W2LI3jthhZ7EqRJDmJ06ZE1RfnmM1iG/qWNQvSbHBvcWpVSwRFS3kdc 61yzBTwnm6ye8ShQw1t5bmh+NgLEG/g3ru3svE+QllCz+7E9kgSaGacQTg2OQmdxDo99 JPHaWmZDfhWYPF/RuoEqppkZU7/RHksU+wZxVfr9H4jFAiLo/PKePswpi+4u/wwtqwRN r43JCSM2nX8HkY/AD4mzcv1SozFyGYnSzANsAWgsii2gJLSYHcueOuCEG862TpFTADsA d/RzTNvVNRdWUvefJD46zqhqheghPrahcFQTSpEWjC00OrrgHX+Qe8Buh1/Rb04KYDzk kaBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Kn5m1zx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25-v6si5838108pfj.53.2018.11.08.14.34.23; Thu, 08 Nov 2018 14:34:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Kn5m1zx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729201AbeKIILk (ORCPT + 99 others); Fri, 9 Nov 2018 03:11:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:55158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730169AbeKIHhS (ORCPT ); Fri, 9 Nov 2018 02:37:18 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FE462146D; Thu, 8 Nov 2018 21:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714390; bh=fDAXGmdFOH0dYlE/vo6yrtZNBCOCKEnKPvD8wuoxm64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Kn5m1zx11ucvXkjNCqdPJt4VcRcBDAG6419LyNhAHOybPZhzNDdtQ5uN3hKlUPcK 0ee+IQPI7f1qx9Lki2T5pTvRVQxzgbenUXgjx7iU7sDHEJLCfsG40dbfcLuRGiQo+6 G4dqU7q49RfKvLSbxs59Hx+iosrvj8ao/lXgbxYA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, William Dauchy , Phil Schmitt , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.4 054/114] ixgbevf: Fix handling of NAPI budget when multiple queues are enabled per vector Date: Thu, 8 Nov 2018 13:51:09 -0800 Message-Id: <20181108215106.020910985@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d0f71afffa1c3d5a36a4a278f1dbbd2643176dc3 ] This is the same patch as for ixgbe but applied differently according to busy polling. See commit 5d6002b7b822c74 ("ixgbe: Fix handling of NAPI budget when multiple queues are enabled per vector") Signed-off-by: William Dauchy Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 50bbad37d640..723bda33472a 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -1014,6 +1014,8 @@ static int ixgbevf_poll(struct napi_struct *napi, int budget) ixgbevf_for_each_ring(ring, q_vector->tx) clean_complete &= ixgbevf_clean_tx_irq(q_vector, ring); + if (budget <= 0) + return budget; #ifdef CONFIG_NET_RX_BUSY_POLL if (!ixgbevf_qv_lock_napi(q_vector)) return budget; -- 2.17.1