lkml.org 
[lkml]   [2022]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 0/3] net: sched: add other statistics when calling qdisc_drop()
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.

\
 
 \ /
  Last update: 2022-08-27 04:41    [W:0.308 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site