From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net][RESEND] strparser: Don't schedule in workqueue in paused state Date: Thu, 21 Jun 2018 09:54:18 +0900 (KST) Message-ID: <20180621.095418.39855891010040022.davem@davemloft.net> References: <20180620215949.32334-1-vakul.garg@nxp.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: doronrk@fb.com, tom@quantonium.net, john.fastabend@gmail.com, davejwatson@fb.com, netdev@vger.kernel.org, ebiggers@google.com, linux-kernel@vger.kernel.org To: vakul.garg@nxp.com Return-path: In-Reply-To: <20180620215949.32334-1-vakul.garg@nxp.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Vakul Garg Date: Thu, 21 Jun 2018 03:29:49 +0530 > 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). > > Signed-off-by: Vakul Garg Applied, thank you.