]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Move the TLS resync check out of the function
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 30 Jul 2020 14:53:46 +0000 (17:53 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 02:41:15 +0000 (19:41 -0700)
commit68bff227fd604b1f1913c233e00ac7c7168ccb05
treed9398e2ac6f2736da9da7e68d7fdd0d437f31b01
parent08008db2e74001dbfd64c8d7a4d13920d9db5fdc
net/mlx5e: Move the TLS resync check out of the function

Before this patch, mlx5e_ktls_tx_handle_resync_dump_comp checked for
resync_dump_frag_page. It happened for all WQEs without an SKB,
including padding WQEs, and required a function call. Normally, padding
WQEs happen more often than TLS resyncs. Take this check out of the
function and put it to an inline function to save a call on all padding
WQEs.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_txrx.h
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c