net/mlx5e: Return bool from TLS and IPSEC offloads
TLS and IPSEC offloads currently return struct sk_buff *, but the value is either NULL or the same skb that was passed as a parameter. Return bool instead to provide stronger guarantees to the calling code (it won't need to support handling a different SKB that could be potentially returned before this change) and to simplify restructuring this code in the following commits. 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/en_accel.h 10 additions, 13 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c 6 additions, 6 deletions...ers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.h 3 additions, 3 deletions...ers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.h
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h 3 additions, 4 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c 5 additions, 6 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 19 additions, 29 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
- drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h 3 additions, 5 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h
- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c 1 addition, 2 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_tx.c
Loading
Please register or sign in to comment