Commit 4898c560 authored by Committed by Ralf Baechle
Staging: Octeon: Free transmit SKBs in a timely manner
If we wait for the once-per-second cleanup to free transmit SKBs, sockets with small transmit buffer sizes might spend most of their time blocked waiting for the cleanup. Normally we do a cleanup for each transmitted packet. We add a watchdog type timer so that we also schedule a timeout for 150uS after a packet is transmitted. The watchdog is reset for each transmitted packet, so for high packet rates, it never expires. At these high rates, the cleanups are done for each packet so the extra watchdog initiated cleanups are neither needed nor triggered. Signed-off-by: David Daney <firstname.lastname@example.org> To: email@example.com To: firstname.lastname@example.org To: email@example.com Cc: Eric Dumazet <firstname.lastname@example.org> Patchwork: http://patchwork.linux-mips.org/patch/968/Signed-off-by: Ralf Baechle <email@example.com> This version has spelling and comment changes based on feedback from Eric Dumazet.
Showing with 142 additions and 63 deletions