Re: [PATCH net] strparser: Fix incorrect strp->need_bytes value.

2018-04-12 Thread David Miller
From: Doron Roberts-Kedes Date: Wed, 11 Apr 2018 15:05:16 -0700 > strp_data_ready resets strp->need_bytes to 0 if strp_peek_len indicates > that the remainder of the message has been received. However, > do_strp_work does not reset strp->need_bytes to 0. If do_strp_work > completes a partial mess

[PATCH net] strparser: Fix incorrect strp->need_bytes value.

2018-04-11 Thread Doron Roberts-Kedes
strp_data_ready resets strp->need_bytes to 0 if strp_peek_len indicates that the remainder of the message has been received. However, do_strp_work does not reset strp->need_bytes to 0. If do_strp_work completes a partial message, the value of strp->need_bytes will continue to reflect the needed byt