]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Reduce number of arguments in slow path handling
authorEli Cohen <eli@mellanox.com>
Thu, 13 Feb 2020 09:12:16 +0000 (11:12 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Feb 2020 00:40:39 +0000 (16:40 -0800)
commit01c4b36054dc825c9e1f85090f185387f404e533
tree9e8dfc319cc3da2e7d9423239c3f636083c5c9e6
parente1025b545a73038e58cb0de70fd0d4b0397580fa
net/mlx5e: Reduce number of arguments in slow path handling

mlx5e_tc_offload_to_slow_path() and mlx5e_tc_unoffload_from_slow_path()
take an extra argument allocated on the stack of the caller but not used
by the caller. Avoid the extra argument and use local variable in the
function itself.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c