net/mlx5e: Avoid creating tunnel headers for local route
authorRoi Dayan <roid@nvidia.com>
Sun, 1 Aug 2021 12:47:46 +0000 (15:47 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:56:38 +0000 (20:56 -0700)
commitc623c95afa56bf4bf64e4f58742dc94616ef83db
tree7f773161db915aaa49d8e99dd1c67a904efbdc71
parentd3875924dae632d5edd908d285fffc5f07c835a3
net/mlx5e: Avoid creating tunnel headers for local route

It could be local and remote are on the same machine and the route
result will be a local route which will result in creating encap id
with src/dst mac address of 0.

Fixes: a54e20b4fcae ("net/mlx5e: Add basic TC tunnel set action for SRIOV offloads")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c