]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: IPsec, Inline feature_check fast-path function
authorTariq Toukan <tariqt@nvidia.com>
Tue, 12 Jan 2021 07:05:33 +0000 (23:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 23:45:58 +0000 (15:45 -0800)
commit3ae81f21b9103e2f8c77f2f606111fb8cf84ecc4
tree7fb254a2d4bcc0f56bc937bbcb3f31d2162723df
parent98fb0c11e51ec9dc93d1eef031b6ae632e041822
net/mlx5e: IPsec, Inline feature_check fast-path function

Feature check functions are in the TX fast-path of all SKBs, not only
IPsec traffic.
Move the IPsec feature check function into a header and turn it inline.
Use a stub and clean the config flag condition in Eth main driver file.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Huy Nguyen <huyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c