lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 30 Jun 2014 12:28:34 -0700 From: Eric Dumazet <eric.dumazet@...il.com> To: Tom Herbert <therbert@...gle.com> Cc: davem@...emloft.net, netdev@...r.kernel.org Subject: Re: [PATCH v2] net: Performance fix for process_backlog On Mon, 2014-06-30 at 09:50 -0700, Tom Herbert wrote: > In process_backlog the input_pkt_queue is only checked once for new > packets and quota is artificially reduced to reflect precisely the > number of packets on the input_pkt_queue so that the loop exits > appropriately. > > This patches changes the behavior to be more straightforward and > less convoluted. Packets are processed until either the quota > is met or there are no more packets to process. > > This patch seems to provide a small, but noticeable performance > improvement. The performance improvement is a result of staying > in the process_backlog loop longer which can reduce number of IPI's. Yes, this is likely the fact that napi->state is cleared at the very end of the run. Acked-by: Eric Dumazet <edumazet@...gle.com> Thanks Tom ! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists