OSDN Git Service

net/mlx5e: TX, Inline TLS skb check
authorTariq Toukan <tariqt@nvidia.com>
Tue, 9 Mar 2021 14:37:42 +0000 (16:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Apr 2021 18:48:02 +0000 (11:48 -0700)
commitb6b3ad2175c852557c06fb52ed533e35a143fb72
treeb78c48dc1c80e6684f8a9a13f2e5a35e33f55307
parent8668587a33b99492b73fd4dbec432f793853376d
net/mlx5e: TX, Inline TLS skb check

When TLS is supported and enabled, every transmitted packet is tested
to identify if TLS offload is required.

Take the early-return condition into an inline function, to save
the overhead of a function call for non-TLS packets.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h