net/mlx5e: Specify out ifindex when looking up encap route
There is a use case that the local and remote VTEPs are in the same
host. Currently, the out ifindex is not specified when looking up the
encap route for offloads. So in this case, a local route is returned
and the route dev is lo.
Actual tunnel interface can be created with a parameter "dev" ,
which specifies the physical device to use for tunnel endpoint
communication. Pass this parameter to driver when looking up encap
route for offloads. So that a unicast route will be returned.
 ip link add name vxlan1 type vxlan id 100 dev enp4s0f0 remote 188.8.131.52 dstport 4789
Signed-off-by: Chris Mi <firstname.lastname@example.org>
Reviewed-by: Maor Dickman <email@example.com>
Reviewed-by: Roi Dayan <firstname.lastname@example.org>
Signed-off-by: Saeed Mahameed <email@example.com>
3 files changed