RE: [PATCH net-next] strparser: Return if socket does not have required number of bytes

2019-01-30 Thread Vakul Garg
> -Original Message- > From: David Miller > Sent: Thursday, January 31, 2019 11:30 AM > To: Vakul Garg > Cc: netdev@vger.kernel.org; bor...@mellanox.com; > avia...@mellanox.com; davejwat...@fb.com; doro...@fb.com > Subject: Re: [PATCH net-next] strparser: Retu

Re: [PATCH net-next] strparser: Return if socket does not have required number of bytes

2019-01-30 Thread David Miller
From: Vakul Garg Date: Wed, 30 Jan 2019 07:31:44 + > Function strp_data_ready() should peek the associated socket to check > whether it has the required number of bytes available before queueing > work or initiating socket read via strp_read_sock(). This saves cpu > cycles because strp_read_s

[PATCH net-next] strparser: Return if socket does not have required number of bytes

2019-01-29 Thread Vakul Garg
Function strp_data_ready() should peek the associated socket to check whether it has the required number of bytes available before queueing work or initiating socket read via strp_read_sock(). This saves cpu cycles because strp_read_sock() is called only when required amount of data is available.