Re: [PATCH net][RESEND] strparser: Don't schedule in workqueue in paused state

From: Dave Watson
Date: Wed Jun 20 2018 - 13:32:25 EST


On 06/21/18 03:29 AM, Vakul Garg wrote:
> In function strp_data_ready(), it is useless to call queue_work if
> the state of strparser is already paused. The state checking should
> be done before calling queue_work. The change reduces the context
> switches and improves the ktls-rx throughput by approx 20% (measured
> on cortex-a53 based platform).

Nice find, works for me. Although current code isn't broken, just
slower, net-next would be fine.

Acked-by: Dave Watson <davejwatson@xxxxxx>