Skip to content
Snippets Groups Projects
user avatar
Felix Fietkau authored
q->tail can be safely updated without locking, because there is no
concurrent access. If called from outside of the tasklet (for flushing),
the tasklet is always disabled.
q->queued can be safely read without locking, as long as the decrement
happens within the locked section.
This patch allows cleaning up tx packets outside of the section that holds
the queue lock for improved performance

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
2fe30dce
History
Name Last commit Last update