]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:08 +0000 (16:33 +0200)
commit3fdad51fe019ddf48047e99e133e22a713ed64fc
tree2877007ceacf5c3d6d6319822a2bffd01fb6d706
parent38efa867c908327611459707be117b2c4312a489
net/mlx4_en: avoid indirect call in TX completion

[ Upstream commit 0c80cdd0f3d249518cbf1908e3c4d4b775c5b1fa ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_tx.c