From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB23327127 for ; Thu, 27 Jul 2023 19:05:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24416C433C7; Thu, 27 Jul 2023 19:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690484723; bh=6n1hxKoAxhSd9tu71Hxc0S41CHLjqKNvtMKeTAZ6R/E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=g6PJqzWrhEPcKuV37iYS8a5YIJr7QXBRZXiVPqYqFl5aw4DcFjOZJeYu+WLbJcGJa 9dd3qa3OkGWQIakMdKm0V/tXeveiUY8WpHbBX0QC47yH05spVbs/sW6l/c/I9j3Rg6 AWlft3nrfzPtHSBDZrDnMlychYf99CfIEJ0CcVHQ9FpQfjEaeX+H7s/fIOOChL9CF5 FVmuXZlclIBNafvn0KdRALL2E6+YxXQyMBJ/RiBnY6AL1E+Q7YN3Mq6O7ZN0dSHpA5 dnYORXDLFq8AJFhmdV0hjqZ6pgrKrKPbliszbU47z0DJIO4wHxbLd6rrC6Xqtkujio ccpFUCihcrZkA== Date: Thu, 27 Jul 2023 12:05:22 -0700 From: Jakub Kicinski To: Michael Chan Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, gospo@broadcom.com Subject: Re: [PATCH net] bnxt: don't handle XDP in netpoll Message-ID: <20230727120522.392fe60b@kernel.org> In-Reply-To: References: <20230727170505.1298325-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 27 Jul 2023 11:52:10 -0700 Michael Chan wrote: > These TX packet completions have already been counted in > __bnxt_poll_work(). If we do nothing here, I think the TX ring will > forever be out-of-sync with the completion ring. I see... Do you prefer adding a return value to tx_int() to tell __bnxt_poll_work_done() whether the work has been done; or to clear tx_pkts in the handler itself rather than the caller?