]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Set egress_dev mark when calling into the HW driver
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 16 Oct 2017 09:19:48 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:18:59 +0000 (21:18 +0100)
commitf8dc776b2d42afbedf512b7e6d51da5dc4f7817b
tree61a90f19a2bc89c3425b7f2617a79c3b973f418c
parenteac978a17becb50733061f79f5ca101183ff148f
net/sched: cls_flower: Set egress_dev mark when calling into the HW driver

Commit 2782ee9 '(net/sched: cls_flower: Add offload support using egress
Hardware device') made sure (when fl_hw_replace_filter is called) to put
the egress_dev mark on persisent structure instance. Hence, following calls
into the HW driver for stats and deletion will note it and act accordingly.

With commit 4c4d6e17e28e this property is lost and hence when called,
the HW driver failes to operate (stats, delete) on the offloaded flow.

Fix it by setting the egress_dev flag whenever the ingress device is
different from the hw device since this is exactly the condition under
which we're calling into the HW driver through the egress port net-device.

Fixes: 4c4d6e17e28e ('net: sched: get rid of struct tc_to_netdev')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roi Dayan <roid@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c