]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Support IPv4 and IPv6 mixed matcher
authorAlex Vesker <valex@mellanox.com>
Sun, 27 Oct 2019 07:10:17 +0000 (09:10 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:55:18 +0000 (14:55 -0700)
commitfaca3d7c92b6bf8d10a0075fe8868232cde9f744
treeee65a6f847a792115b196607d59f6eabd82a339e
parent465b1d7df536cda2c87c6d4cf162f183c68670bd
net/mlx5: DR, Support IPv4 and IPv6 mixed matcher

Until now SW steering supported matchers that are IPv4 and IPv6.
The limitation was mixed matchers in which the outer header IP version
was different from the inner header IP version.

To support the mixed matcher we create all the possible ste_builder
combinations, once we create a rule we select the correct one to
be used for rule creation.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h