]> 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)
commite20b47ef18f75168b6c4a89ea5c70b9120c9a978
tree26c32e51c676568c961868706bff01a1566d781a
parent768739d3efabbd0aea938a3b62222fcf21878b3a
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