net/mlx5e: XDP, Avoid indirect call in TX flow
authorTariq Toukan <tariqt@mellanox.com>
Thu, 30 Apr 2020 11:32:45 +0000 (14:32 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jul 2020 23:36:54 +0000 (16:36 -0700)
commit93761ca17edf83f4222ab5abda8bde837ea5a309
tree2ac4b23668f079ba0a71ee09bd2d8cac743d8a5d
parent7ed92f97a1ad308ca77bc73eb62156ec8c2bf51a
net/mlx5e: XDP, Avoid indirect call in TX flow

Use INDIRECT_CALL_2() helper to avoid the cost of the indirect call
when/if CONFIG_RETPOLINE=y.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c