]> 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)
commit0c80cdd0f3d249518cbf1908e3c4d4b775c5b1fa
tree0ad43e9320cb9b869c2a2b9af50f8416c6d2fec1
parent08e734518d581b5b4f9b73a32adf7f15160a856b
net/mlx4_en: avoid indirect call in TX completion

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