mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
crypto: chcr - small packet Tx stalls the queue
commit c35828ea90
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>
This commit is contained in:
parent
0fa6bead41
commit
cc43a8afa8
1 changed files with 4 additions and 1 deletions
|
@ -303,7 +303,10 @@ static bool chcr_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x)
|
|||
|
||||
static inline int is_eth_imm(const struct sk_buff *skb, unsigned int kctx_len)
|
||||
{
|
||||
int hdrlen = sizeof(struct chcr_ipsec_req) + kctx_len;
|
||||
int hdrlen;
|
||||
|
||||
hdrlen = sizeof(struct fw_ulptx_wr) +
|
||||
sizeof(struct chcr_ipsec_req) + kctx_len;
|
||||
|
||||
hdrlen += sizeof(struct cpl_tx_pkt);
|
||||
if (skb->len <= MAX_IMM_TX_PKT_LEN - hdrlen)
|
||||
|
|
Loading…
Reference in a new issue