From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: [PATCH net-next v2 1/2] net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue Date: Sun, 25 Nov 2018 14:30:29 +0100 Message-ID: References: <33ded8c6-b369-84d8-cca1-dca4c989515a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: David Miller , Realtek linux nic maintainers Return-path: Received: from mail-wm1-f68.google.com ([209.85.128.68]:55732 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbeKZAXH (ORCPT ); Sun, 25 Nov 2018 19:23:07 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so15532812wmc.5 for ; Sun, 25 Nov 2018 05:32:01 -0800 (PST) In-Reply-To: <33ded8c6-b369-84d8-cca1-dca4c989515a@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Similar to netdev_sent_queue add helper __netdev_sent_queue as variant of __netdev_tx_sent_queue. Signed-off-by: Heiner Kallweit --- v2: - no changes --- include/linux/netdevice.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 1dcc0628b..a417fa501 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3214,6 +3214,14 @@ static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) netdev_tx_sent_queue(netdev_get_tx_queue(dev, 0), bytes); } +static inline bool __netdev_sent_queue(struct net_device *dev, + unsigned int bytes, + bool xmit_more) +{ + return __netdev_tx_sent_queue(netdev_get_tx_queue(dev, 0), bytes, + xmit_more); +} + static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, unsigned int pkts, unsigned int bytes) { -- 2.19.1