Skip to content

Commit cc43a8a

Browse files
chelsiocryptogregkh
authored andcommitted
crypto: chcr - small packet Tx stalls the queue
commit c35828e 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>
1 parent 0fa6bea commit cc43a8a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/crypto/chelsio/chcr_ipsec.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ static bool chcr_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x)
303303

304304
static inline int is_eth_imm(const struct sk_buff *skb, unsigned int kctx_len)
305305
{
306-
int hdrlen = sizeof(struct chcr_ipsec_req) + kctx_len;
306+
int hdrlen;
307+
308+
hdrlen = sizeof(struct fw_ulptx_wr) +
309+
sizeof(struct chcr_ipsec_req) + kctx_len;
307310

308311
hdrlen += sizeof(struct cpl_tx_pkt);
309312
if (skb->len <= MAX_IMM_TX_PKT_LEN - hdrlen)

0 commit comments

Comments
 (0)