net/mlx4_en: avoid indirect call in TX completion
authorEric Dumazet <edumazet@google.com>
Wed, 15 Apr 2020 16:46:52 +0000 (09:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Apr 2020 22:30:22 +0000 (15:30 -0700)
commit310660a14b74c380b0ef5c12b66933d6a3d1b59f
tree0ad43e9320cb9b869c2a2b9af50f8416c6d2fec1
parent62e697767fac598518bc687d3e0dafdd7c2f09f5
net/mlx4_en: avoid indirect call in TX completion

Commit 9ecc2d86171a ("net/mlx4_en: add xdp forwarding and data write support")
brought another indirect call in fast path.

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

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Cc: Willem de Bruijn <willemb@google.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c