[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <562e0cf1-17f0-3bbd-7304-334a7edcd21a@huawei.com>
Date: Tue, 30 Aug 2022 19:49:03 +0800
From: shaozhengchao <shaozhengchao@...wei.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<davem@...emloft.net>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<jhs@...atatu.com>, <xiyou.wangcong@...il.com>, <jiri@...nulli.us>,
<weiyongjun1@...wei.com>, <yuehaibing@...wei.com>
Subject: Re: [PATCH net-next 0/3] net: sched: add other statistics when
calling qdisc_drop()
On 2022/8/30 12:48, Jakub Kicinski wrote:
> On Sat, 27 Aug 2022 11:16:53 +0800 shaozhengchao wrote:
>> On 2022/8/27 10:40, Jakub Kicinski wrote:
>>> On Thu, 25 Aug 2022 11:29:40 +0800 Zhengchao Shao wrote:
>>>> According to the description, "other" should be added when calling
>>>> qdisc_drop() to discard packets.
>>>
>>> The fact that an old copy & pasted comment says something is not
>>> in itself a sufficient justification to make code changes.
>>>
>>> qdisc_drop() already counts drops, duplicating the same information
>>> in another place seems like a waste of CPU cycles.
>>
>> Hi Jakub:
>> Thank you for your reply. It seems more appropriate to delete the other
>> variable, if it is unused?
>
> Yes, removing it SGTM.
Hi Jakub:
Thank you. I have send v3.
Zhengchao Shao
Powered by blists - more mailing lists