mlxsw: core: Convert fwd_entry_ref list to be generic per-block resource list
authorJiri Pirko <jiri@mellanox.com>
Fri, 19 Jan 2018 08:24:47 +0000 (09:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jan 2018 23:21:30 +0000 (18:21 -0500)
commit140ce421217e99f68a0108382e0789c1b1a15547
tree8f907f5b9b1436e2b26d7fb6ed25261a06f5ea2e
parent4c6b7f6307d46ca3dcb8a32975fe68d153832176
mlxsw: core: Convert fwd_entry_ref list to be generic per-block resource list

Since the resource list needs to be used also for other entries different
to fwd_entry_ref, make the list generic. For that purpose, introduce a
resource structure with couple of helpers that the code which need to
store a per-block resource should use.

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