From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32E11C433E7 for ; Sun, 11 Oct 2020 18:35:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DFEF02078B for ; Sun, 11 Oct 2020 18:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602441332; bh=/DRGGtHPXfckTsLlCCD+VI6XdTKF9prIrulmXIksjcM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=nZ7EMx/G3cQHLU8m39liobu568RzKCxmjSAkwXEDnwEQ/jcCC6Zj/+REysTQD0u2d U44FpXuJKXRrKPE3Zr2XKJ9WN/KESkop5RUmEID1WNEDr6Dnrn2m18HpuVzEjo/ylM Ds0X+V53qig3ZwBtcTvbnw/iOga/8XZXX9meP8HA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726677AbgJKSfc (ORCPT ); Sun, 11 Oct 2020 14:35:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:57362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbgJKSfb (ORCPT ); Sun, 11 Oct 2020 14:35:31 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (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 541B32078B; Sun, 11 Oct 2020 18:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602441331; bh=/DRGGtHPXfckTsLlCCD+VI6XdTKF9prIrulmXIksjcM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gfSyPXpGCNLf1jF5Mw8GYsTy5ecB4hx8ll21G3+NLN1oUxaPS1c/22AOm+QWhDqFn LQmQYrDg39qP/nya5RsBLAKyncNnr9AritU5WLDa/GowyM/Sn/5DTyUnsiembRH4g5 BPrfiB44bc6ZDqD7JjOlGSBXcwPx3v5pjY3CDg78= Date: Sun, 11 Oct 2020 11:35:29 -0700 From: Jakub Kicinski To: Jonathan Lemon Cc: , , , Subject: Re: [PATCH net-next] mlx4: handle non-napi callers to napi_poll Message-ID: <20201011113529.23a26766@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201008184526.3196768-1-jonathan.lemon@gmail.com> References: <20201008184526.3196768-1-jonathan.lemon@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 8 Oct 2020 11:45:26 -0700 Jonathan Lemon wrote: > From: Jonathan Lemon > > netcons calls napi_poll with a budget of 0 to transmit packets. > Handle this by: > - skipping RX processing > - do not try to recycle TX packets to the RX cache > > Signed-off-by: Jonathan Lemon Tariq, Saeed - how does this look to you?