compress/mlx5: support partial transformation
authorRaja Zidane <rzidane@nvidia.com>
Wed, 15 Sep 2021 00:12:23 +0000 (00:12 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 20 Oct 2021 14:01:45 +0000 (16:01 +0200)
commit2efd2654455431f735deb1db68e8d12d42f2d2b8
treeecc8ed31d0508156ca350d4d08046a8ba4b04568
parentfd390896f4a3dd27ebdf551673960bece8aff966
compress/mlx5: support partial transformation

Currently compress, decompress and dma are allowed
only when all 3 capabilities are on.
A case where the user wants decompress offload, if
decompress capability is on but one of compress,
dma is off, is not allowed.
Split compress/decompress/dma support check to allow
partial transformations.

Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/compress/mlx5/mlx5_compress.c