From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH 3/4] sch_api: Allow reducing queue backlog by a negative value Date: Mon, 7 Jan 2019 12:54:22 -0800 Message-ID: <69d53b63-f7ed-3c6e-f191-43ec7fbd1735@gmail.com> References: <20190107194733.31138-1-toke@toke.dk> <20190107194733.31138-4-toke@toke.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: cake@lists.bufferbloat.net, =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , netdev@vger.kernel.org Return-path: Received: from mail-ed1-f67.google.com ([209.85.208.67]:41234 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfAGUy2 (ORCPT ); Mon, 7 Jan 2019 15:54:28 -0500 Received: by mail-ed1-f67.google.com with SMTP id a20so2193261edc.8 for ; Mon, 07 Jan 2019 12:54:26 -0800 (PST) In-Reply-To: <20190107194733.31138-4-toke@toke.dk> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 01/07/2019 11:47 AM, Toke Høiland-Jørgensen wrote: > From: Toke Høiland-Jørgensen > > With GSO splitting in sch_cake, we can decrease as well as increase the > qlen. To make it possible to signal this up the qdisc tree, change > qdisc_tree_reduce_backlog() to accept signed integer values as the number > of packets and bytes to reduce the backlog by. Not sure why this patch is needed, given we use u32 integers for q.qlen & qstats.backlog 0xFFFFFFFF for n is really -1 once folded... sch->q.qlen -= n; sch->qstats.backlog -= len;