]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Allow dissector meta key in tc flower
authorVlad Buslov <vladbu@mellanox.com>
Thu, 11 Jul 2019 10:03:48 +0000 (13:03 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 15 Jul 2019 20:04:04 +0000 (13:04 -0700)
commit35fb12a234f53a7817a77ff35fe74475f9060f03
treeb94387b12baa6c40f3413b6b0e69be521e90daf2
parent2586ccdd83b18138f2d56e384f232d048a13b569
net/mlx5e: Allow dissector meta key in tc flower

Recently, fl_flow_key->indev_ifindex int field was refactored into
flow_dissector_key_meta field. With this, flower classifier also sets
FLOW_DISSECTOR_KEY_META flow dissector key. However, mlx5 flower dissector
validation code rejects filters that use flow dissector keys that are not
supported. Add FLOW_DISSECTOR_KEY_META to the list of allowed dissector
keys in __parse_cls_flower() to prevent following error when offloading
flower classifier to mlx5:

Error: mlx5_core: Unsupported key.

Fixes: 622f14f0af89 ("net: sched: cls_flower: use flow_dissector for ingress ifindex")
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