mlxsw: spectrum: acl: Push code related to num_ctcam_erps inc/dec into separate helpers
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Nov 2018 08:22:34 +0000 (08:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 22:43:43 +0000 (14:43 -0800)
commitc293ba3403566c771fd80fc10800a200ef8539e8
treec3dd9d6948c746b2c614fc4d4b732067ade303f7
parent59600844cf4ef6acf65166ef6e47e89f7a79717c
mlxsw: spectrum: acl: Push code related to num_ctcam_erps inc/dec into separate helpers

Later on the same code is going to be needed for deltas as well. So push
the procedures related to increment and decrement of num_ctcam_erps
into a separate helpers.

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_acl_erp.c