From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: [PATCH net 0/3] net: bql: better deal with GSO Date: Mon, 29 Oct 2018 16:25:36 -0700 Message-ID: <20181029232539.217268-1-edumazet@google.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: netdev , Eric Dumazet , Willem de Bruijn , Tariq Toukan , Eric Dumazet To: "David S . Miller" Return-path: Received: from mail-pl1-f196.google.com ([209.85.214.196]:38370 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbeJ3IQm (ORCPT ); Tue, 30 Oct 2018 04:16:42 -0400 Received: by mail-pl1-f196.google.com with SMTP id p7-v6so4560945plk.5 for ; Mon, 29 Oct 2018 16:25:44 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 qdisc requeues and reschedules. This patch series : - Add netdev_tx_sent_queue_more() 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_more() - changes mlx4 to use netdev_tx_sent_queue_more() Eric Dumazet (3): net: bql: add netdev_tx_sent_queue_more() helper net: do not abort bulk send on BQL status net/mlx4_en: use netdev_tx_sent_queue_more() drivers/net/ethernet/mellanox/mlx4/en_tx.c | 10 ++++++++-- include/linux/netdevice.h | 12 ++++++++++++ net/core/dev.c | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) -- 2.19.1.568.g152ad8e336-goog