Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2309088pxk; Mon, 14 Sep 2020 09:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs0V29YCaohILrWZ1lvFu7CJ9bF/kto3jZnPnTss0d7nb1CfRoYMSdb1rNaWvkh3mhf01U X-Received: by 2002:a17:906:1690:: with SMTP id s16mr15523506ejd.122.1600102231976; Mon, 14 Sep 2020 09:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600102231; cv=none; d=google.com; s=arc-20160816; b=tjhyjPr8hDjCjrNmRTt0BjPfu91hKy2xSIROX3k/EdyVtgzDM8eNCU3NumIb4fux9c tJq2H/nW3etD9w6clPTB6ftK6ZwaFtr4dmPbBfscbkkn4cdhmUy3ctCVF04hypOyE3Gw r2UHSrc9Oi63/OSJxp+m/T2mhTl4tqisC5Nm3gz4+u5roEsA1e6EpSNrIlbrPy2aX31T 4o8C83qF06IY/NVz5iq7b1qcWCf7yQEMLox2/XhCI3e/94Fz57hw4sXVxtb58scafiHj B6DdHnKj4JMjBSKbjFb7st992vnvdvkOLG34FkRrL13OpbBcX3lxUPsMwPTe7HKUaT/x LOHA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ihmYPUi1LWrK5aQDXPVpZpeKjf/Vmw2f4X/FWn1eMTk=; b=PH+A0ID1WoCiFkTmCpoKsQOdBgi1lStWkfI7ioZmHaG3fEKsuN/jcS27nQyWBpE3zw 6ZkM08gRATyCjvn92neggLR4doYyCVZHIy6DY9qTL+i4PbdtKHniYoLKy5xwHnXU99Mg /6nu0WhThLjBrF3f1t1Xxa+db9FfauCsxk5ALinq1/33pwdTujP3szDbHAl1rS9mpoUL LqQganT9HaWEWUJr7fBJ944TYlBXS70JZc5pnHdLR/h5wHtosY03zk8gX7x+2Zu5RGTv mpV6hoyvW3FKvselw2gw2+B83l3iUqV1vFBhV5kW/ocDXxNQRBvSqFWk+7GgL1Mfi7WB 5jrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AuGHsxB5; 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 r25si8012046edy.478.2020.09.14.09.50.09; Mon, 14 Sep 2020 09:50:31 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=AuGHsxB5; 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 S1726162AbgINQtY (ORCPT + 99 others); Mon, 14 Sep 2020 12:49:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgINQrp (ORCPT ); Mon, 14 Sep 2020 12:47:45 -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 C4F5020829; Mon, 14 Sep 2020 16:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600102048; bh=LipKN19DLm+NuifYFHmitiE/2o2q0Ll13jeI5eHrFAI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AuGHsxB5+fJRUdE4As/+MNl0akYExcn1cmbW9dJEp9PJ2f9akrHTtLZbuDf8Yye1B hdGdYlhVnI/5PPFVkeZUIpqtHeV5YoAE+bRARpBNS/+OLuKPUfbQJgM94RJfeN7ptC TGy8Ub60gbp8BOUZlG9X9VkLBdrWz6ZHe7g2MiAQ= Date: Mon, 14 Sep 2020 09:47:26 -0700 From: Jakub Kicinski To: Omer Shpigelman Cc: Oded Gabbay , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , SW_Drivers , "gregkh@linuxfoundation.org" , "davem@davemloft.net" Subject: Re: [PATCH 05/15] habanalabs/gaudi: add NIC Ethernet support Message-ID: <20200914094726.1c5f747c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20200910161126.30948-1-oded.gabbay@gmail.com> <20200910161126.30948-6-oded.gabbay@gmail.com> <20200910130307.5dee086b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Sep 2020 09:52:00 +0000 Omer Shpigelman wrote: > On Thu, Sep 10, 2020 at 11:03 PM Jakub Kicinski wrote: > > On Thu, 10 Sep 2020 19:11:16 +0300 Oded Gabbay wrote: > > > +module_param(nic_rx_poll, int, 0444); > > MODULE_PARM_DESC(nic_rx_poll, > > > + "Enable NIC Rx polling mode (0 = no, 1 = yes, default no)"); > > > > If your chip does not support IRQ coalescing you can configure polling and the > > timeout via ethtool -C, rather than a module parameter. > > I couldn't find an example for that in other drivers and I didn't see > anything regarding polling mode in the parameters description of this > ethtool callback. > Can you please specify some pointer for that? Or in other words, what > parameter can we use to enable polling/setting the timeout? Look at stmmac, hip04_eth..