From: David Miller Subject: Re: [PATCH v2 net 0/3] net: bql: better deal with GSO Date: Sat, 03 Nov 2018 15:40:28 -0700 (PDT) Message-ID: <20181103.154028.1864906755289829872.davem@davemloft.net> References: <20181031153914.132127-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tariqt@mellanox.com, willemb@google.com, eric.dumazet@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57878 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbeKDHxL (ORCPT ); Sun, 4 Nov 2018 02:53:11 -0500 In-Reply-To: <20181031153914.132127-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Wed, 31 Oct 2018 08:39:11 -0700 > While BQL bulk dequeue works well for TSO packets, it is > not very efficient as soon as GSO is involved. > > On a GSO only workload (UDP or TCP), this patch series > can save about 8 % of cpu cycles on a 40Gbit mlx4 NIC, > by keeping optimal batching, and avoiding expensive > doorbells, qdisc requeues and reschedules. > > This patch series : > > - Add __netdev_tx_sent_queue() so that drivers > can implement efficient BQL and xmit_more support. > > - Implement a work around in dev_hard_start_xmit() > for drivers not using __netdev_tx_sent_queue() > > - changes mlx4 to use __netdev_tx_sent_queue() > > v2: Tariq and Willem feedback addressed. > added __netdev_tx_sent_queue() (Willem suggestion) Series applied, but I wonder how many other commonly used drivers we should update the same way mlx4 is here?