OSDN Git Service

net/mlx5e: Remove output device parameter from create encap header helpers definition
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 2 Feb 2017 13:01:02 +0000 (15:01 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:03:08 +0000 (16:03 +0300)
commit1a8552bd81af5f4f19b26ac58e8c85866d4f7de8
tree6becd0a22b91c62210e9b7d58957142c2b34dfda
parentc1ae11521b1e87523553ddd3c1aa88be3d710c96
net/mlx5e: Remove output device parameter from create encap header helpers definition

Passing output device parameter to the helper functions that deal with
creation of encapsulation headers is redundant. Output device parameter
can be defined inside those helpers, no need to pass it. Refactor the code by
removing the parameter from the function signature.

This patch doesn't change any functionality.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c