net/mlx5e: Unify checks of TLS offloads
Both INNOVA and ConnectX TLS offloads perform the same checks in the beginning. Unify them to reduce repeating code. Do WARN_ON_ONCE on netdev mismatch and finish with an error in both offloads, not only in the ConnectX one. Signed-off-by:Maxim Mikityanskiy <maximmi@mellanox.com> Reviewed-by:
Tariq Toukan <tariqt@mellanox.com> Signed-off-by:
Saeed Mahameed <saeedm@mellanox.com>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h 2 additions, 2 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c 2 additions, 15 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 9 additions, 5 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
Please register or sign in to comment