]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Refactor mlx5_accel_esp_create_hw_context parameter list
authorRaed Salem <raeds@mellanox.com>
Tue, 10 Dec 2019 11:20:55 +0000 (13:20 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:19 +0000 (14:20 -0700)
commit06817c994f10cdecd9a57daec9ccbe24ecc0d4e9
tree0299539b6b81ec40259165bf7f35361f78d00120
parent9012cfcfa30cd80f886e445a6040f9f1b295bfb4
net/mlx5: Refactor mlx5_accel_esp_create_hw_context parameter list

Currently the FPGA IPsec is the only hw implementation of the IPsec
acceleration api, and so the mlx5_accel_esp_create_hw_context was
wrongly made to suit this HW api, among other in its parameter list
and some of its parameter endianness.

This implementation might not be suitable for different HW.

Refactor by group and pass all function arguments of
mlx5_accel_esp_create_hw_context in common mlx5_accel_esp_xfrm_attrs
struct field of mlx5_accel_esp_xfrm struct and correct the endianness
according to the HW being called.

Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/accel/ipsec.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
include/linux/mlx5/accel.h