Now, the "other" member in the choke_sched_data structure is not used.
According to the description, "other" should be added when calling
qdisc_drop() to discard packets.
Signed-off-by: Zhengchao Shao <redacted>
---
net/sched/sch_choke.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Now, the "other" member in the red_sched_data structure is not used.
According to the description, "other" should be added when calling
qdisc_drop() to discard packets.
Signed-off-by: Zhengchao Shao <redacted>
---
net/sched/sch_red.c | 1 +
1 file changed, 1 insertion(+)
Now, the "other" member in the gred_sched_data structure is not used.
According to the description, "other" should be added when calling
qdisc_drop() to discard packets.
Signed-off-by: Zhengchao Shao <redacted>
---
include/net/red.h | 2 +-
net/sched/sch_gred.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
From: Jakub Kicinski <kuba@kernel.org> Date: 2022-08-27 02:41:01
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.
On Thu, 25 Aug 2022 11:29:40 +0800 Zhengchao Shao wrote:
quoted
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?
Zhengchao Shao
From: Jakub Kicinski <kuba@kernel.org> Date: 2022-08-30 04:49:01
On Sat, 27 Aug 2022 11:16:53 +0800 shaozhengchao wrote:
On 2022/8/27 10:40, Jakub Kicinski wrote:
quoted
On Thu, 25 Aug 2022 11:29:40 +0800 Zhengchao Shao wrote:
quoted
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?
On Sat, 27 Aug 2022 11:16:53 +0800 shaozhengchao wrote:
quoted
On 2022/8/27 10:40, Jakub Kicinski wrote:
quoted
On Thu, 25 Aug 2022 11:29:40 +0800 Zhengchao Shao wrote:
quoted
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