net/mlx5e: Tunnel encap ETH header helper function
authorEli Britstein <elibr@mellanox.com>
Sun, 9 Dec 2018 07:17:18 +0000 (09:17 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Dec 2018 13:06:02 +0000 (05:06 -0800)
commit05ada1adb65acd533f978651e7001e3568e7b98a
tree4ee1c0bdfc2ac653647f30b907310a1209b2c324
parentb168cff0b9b216e68215cdb28db999f542482a56
net/mlx5e: Tunnel encap ETH header helper function

In tunnel encap we prepare the encap header for IPv4/6 cases, in two
separate functions. For ETH header generation the code is almost
duplicated.

Move the ETH header generation code from IPv4/6 functions to a helper
function, with no functional change.

Signed-off-by: Eli Britstein <elibr@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_tun.c