crypto: chcr - small packet Tx stalls the queue
authorAtul Gupta <atul.gupta@chelsio.com>
Fri, 30 Nov 2018 09:01:48 +0000 (14:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:38:44 +0000 (17:38 +0100)
commitcc43a8afa8e37cd466000ee1b4995e8f8e7b615d
tree54f02ac2d1afd94d5919bd80b190fc648ec057a0
parent0fa6bead41baabd87abdffdd1d33d341069935af
crypto: chcr - small packet Tx stalls the queue

commit c35828ea906a7c76632a0211e59c392903cd4615 upstream.

Immediate packets sent to hardware should include the work
request length in calculating the flits. WR occupy one flit and
if not accounted result in invalid request which stalls the HW
queue.

Cc: stable@vger.kernel.org
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chcr_ipsec.c