]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Re-attempt to offload flows on multipath port affinity events
authorRoi Dayan <roid@mellanox.com>
Wed, 6 Feb 2019 13:43:51 +0000 (15:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:17 +0000 (12:04 -0800)
commit3ab5141183e17f01c67ebd79b2b5c1174e7bea74
tree26c32e51c676568c961868706bff01a1566d781a
parentd79384bc26f039d98adf1dce1ef5ea2a70783c61
net/mlx5e: Re-attempt to offload flows on multipath port affinity events

Under multipath it's possible for us to offload the flow only through
the e-switch for which proper route through the uplink exists.
When the port is up and the next-hop route is set again we want to
offload through it as well.

We generate SW event from the FIB event handler when multipath port
affinity changes. The tc offloads code gets this event, goes over the
flows which were marked as of having missing route and attempts to
offload them.

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_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h