]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Track ingress and egress block bindings
authorJiri Pirko <jiri@mellanox.com>
Mon, 24 Feb 2020 07:35:48 +0000 (08:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:55:07 +0000 (11:55 -0800)
commit88ac812fba546af0f66228bfc4e78c7e733ca571
tree5274b948f2f242e34a972130182c69e45818ce33
parente7d5034acf1cad562e180645980f6aaf83bed38f
mlxsw: spectrum_acl: Track ingress and egress block bindings

Count the number of ingress and egress block bindings. Use the egress
counter in "is_egress_bound" helper. Add couple of helpers to check
ingress and mixed bound.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c