]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d485d44173e7fa775ea8a3d0812330a0abded78
tree0ad43e9320cb9b869c2a2b9af50f8416c6d2fec1
parent58ca5362a68bec36358d49a4d6eeb1ac4def7919
net/mlx4_en: avoid indirect call in TX completion

Commit 5c13f5ea2041 ("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