You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(queue): move retain to DropTailQueue and track now_bytes
The retain method was a default trait method on PacketQueue but only
ever called on the concrete DropTailQueue. Its implementations never
updated now_bytes, so the byte counter drifted out of sync with the
queue contents whenever packets were dropped.
Remove retain from the PacketQueue trait (and its no-op impls in
codel/drophead/infinite), and reimplement it as an inherent method on
DropTailQueue that decrements now_bytes for each dropped packet.
0 commit comments