]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ebef383cae4d14b95eef2d51e9a24b8611dc153
tree9efcd7483dae07928cb438b1952fca9c963e2923
parent8beddf9db6e5902d7bd455960d12bd196f353d08
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