Re: [PATCH net] batman-adv: reduce softirq drain in tt_purge loops
From: Sven Eckelmann
Date: Sat Oct 31 2026 - 10:21:22 EST
On Friday, 30 October 2026 00:59:51 CET Ömer Mete Kaya wrote:
> + if ((i & 63) == 63) {
> + local_bh_enable();
> + cond_resched();
> + local_bh_disable();
> + }
This is repeated (and will be in the future even more repeated). And it
contains odd magic values. This should maybe be extracted.
https://git.open-mesh.org/pub/ecsv/batman-adv.git/commit/?h=b4/hash-iterate-disable-bh&id=2cda1f6e4640b3bbdfadb8ef1ef633cf3c87f6ec
Regards,
Sven
Attachment:
signature.asc
Description: This is a digitally signed message part.