]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Rely on filter_dev instead of dissector keys for tunnels
authorVlad Buslov <vladbu@mellanox.com>
Mon, 8 Jul 2019 14:02:36 +0000 (17:02 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 15 Jul 2019 20:04:04 +0000 (13:04 -0700)
commit2586ccdd83b18138f2d56e384f232d048a13b569
tree568768a686c0e7a9afef4d67b92644b223a4cbdf
parent847b2753cd5a5bfaa4ff5dde4906fabf8ab56626
net/mlx5e: Rely on filter_dev instead of dissector keys for tunnels

Currently, tunnel attributes are parsed and inner header matching is used
only when flow dissector specifies match on some of the supported
encapsulation fields. When user tries to offload tc filter that doesn't
match any encapsulation fields on tunnel device, mlx5 tc layer incorrectly
sets to match packet header keys on encap header (outer header) and
firmware rejects the rule with syndrome 0x7e1579 when creating new flow
group.

Change __parse_cls_flower() to determine whether tunnel is used based on
fitler_dev tunnel info, instead of determining it indirectly by checking
flow dissector enc keys.

Fixes: ba99ac39693b ("net/mlx5e: Add TC tunnel release action for SRIOV offloads")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c