OSDN Git Service

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)
commit178f69b4776ea5e6c1dc1240d447d9c76e32c839
tree9e8dfc319cc3da2e7d9423239c3f636083c5c9e6
parentdec481c86e741b9ec94cb7867dbf253d6bca5e43
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