net/mlx5e: Don't make internal use of errno to denote missing neigh
authorRoi Dayan <roid@mellanox.com>
Tue, 12 Feb 2019 12:05:56 +0000 (14:05 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:15 +0000 (12:04 -0800)
commit0ad060ee9c8fcf15aa9aa03965276a278247f87e
tree9efcd7483dae07928cb438b1952fca9c963e2923
parent733d4f367c34c971ce2d4f466d71ae5a189cbe5f
net/mlx5e: Don't make internal use of errno to denote missing neigh

EAGAIN is treated as a specific case when we consider the attachment
successful but wait for neigh event before offloading the flow.
This can result in unwanted behavior when sub calls on the offloading
path will return EAGAIN and we pass this error up.

Instead of attaching to a specific error code return a  boolean value
from the attach encap operation saying if the encap is valid or not.

Signed-off-by: Roi Dayan <roid@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_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c