ch_ktls: don't free skb before sending FIN
authorRohit Maheshwari <rohitm@chelsio.com>
Mon, 9 Nov 2020 10:51:39 +0000 (16:21 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 00:30:38 +0000 (16:30 -0800)
commit659bf0383d15b07e492e27443d87736b24171558
treeb49efe8ba780d17b6b0ff3e91828ca469e043cd1
parent9478e083941c873d60a97b232760a14dec6c69d3
ch_ktls: don't free skb before sending FIN

If its a last packet and fin is set. Make sure FIN is informed
to HW before skb gets freed.

Fixes: 429765a149f1 ("chcr: handle partial end part of a record")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c