]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Only allow offloading decap egress (egdev) flows
authorRoi Dayan <roid@mellanox.com>
Thu, 12 Jul 2018 15:25:59 +0000 (18:25 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 19 Jul 2018 01:16:59 +0000 (18:16 -0700)
commit7c3a6e48d70cdc359ae25d1b66b3a2434d7f724b
tree4663c0a40f8aca394616bacaaffbb9e26fcc3e5d
parent441f46f08e9c42a386dd5d600a131d3ed7e84042
net/mlx5e: Only allow offloading decap egress (egdev) flows

We get egress rules through the egdev mechanism when the ingress device
is not supporting offload, with the expected use-case of tunnel decap
ingress rule set on shared tunnel device.

Make sure to offload egress/egdev rules only if decap action (tunnel key
unset) exists there and err otherwise.

Fixes: f5b5a783b5aa ("net: sched: convert cls_flower->egress_dev users to tc_setup_cb_egdev infra")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c