crypto/bcmfs: optimize crypto request processing
authorVikas Gupta <vikas.gupta@broadcom.com>
Tue, 13 Oct 2020 07:47:13 +0000 (13:17 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 20:24:41 +0000 (22:24 +0200)
commitcd5db556ace9f01521a039a75f0b1a35cfcd6bcb
tree18d9f3a6bd3319dd869e763b9e4af423a6b82392
parente7794508aef926a9e6528b6c7cc8df731a92ca43
crypto/bcmfs: optimize crypto request processing

Reduce number of source BDs to submit a request to crypto engine.
This improves the performance as crypto engine fetches all the BDs in
single cycle. Adjust optional metadata (OMD) in continuation of
fixed meta data (FMD).

Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/crypto/bcmfs/bcmfs_sym_defs.h
drivers/crypto/bcmfs/bcmfs_sym_engine.c
drivers/crypto/bcmfs/bcmfs_sym_pmd.c
drivers/crypto/bcmfs/bcmfs_sym_req.h