OSDN Git Service

ch_ktls: Correction in finding correct length
authorRohit Maheshwari <rohitm@chelsio.com>
Mon, 9 Nov 2020 10:51:32 +0000 (16:21 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 00:30:37 +0000 (16:30 -0800)
commitb1b5cb18032b37ab69b23a461eb8be1a44fcfc3b
treec49f7c1e8a44ef3870984d3d1535078f9a7af689
parent9d2e5e9eeb59524a59b461fe256139826d464e1e
ch_ktls: Correction in finding correct length

There is a possibility of linear skbs coming in. Correcting
the length extraction logic.

v2->v3:
- Separated un-related changes from this patch.

Fixes: 5a4b9fe7fece ("cxgb4/chcr: complete record tx handling")
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