Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: Adjust Crypto BSF size if signature is used
[ Upstream commit b38f343 ] When a Mkey is configured with crypto and signature offload, the crypto BSF size and signature BSF size should both be set to 128 Bytes. Currently, when building the crypto BSF, we do not take into account if signature mode is configured or not, and we set the crypto BSF size to 64 Bytes. The situation above does not affect crypto configuration on CX6 HCA, but will obstruct crypto traffic in more recent HCA's such as CX6Dx and onwards. Thus, check if signature mode is configured when building crypto bsf, and set the bsf size accordingly. Fixes: b5f0a58 ("mlx5: Add crypto setter for MKey") Signed-off-by: Maher Sanalla <msanalla@nvidia.com> Reviewed-by: Avihai Horon <avihaih@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
- Loading branch information