]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net : sched: cls_api: deal with egdev path only if needed
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 23 May 2018 16:24:48 +0000 (19:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 02:12:22 +0000 (22:12 -0400)
commitf8f4bef322e4600c5856911c7a632c0e3da920d6
treee732d0ffc941623cfde00b250bc40b99be25ec5d
parent1b15ad683ab42a203f98b67045b40720e99d0e9a
net : sched: cls_api: deal with egdev path only if needed

When dealing with ingress rule on a netdev, if we did fine through the
conventional path, there's no need to continue into the egdev route,
and we can stop right there.

Not doing so may cause a 2nd rule to be added by the cls api layer
with the ingress being the egdev.

For example, under sriov switchdev scheme, a user rule of VFR A --> VFR B
will end up with two HW rules (1) VF A --> VF B and (2) uplink --> VF B

Fixes: 208c0f4b5237 ('net: sched: use tc_setup_cb_call to call per-block callbacks')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c