commit | 140ce421217e99f68a0108382e0789c1b1a15547 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Fri Jan 19 09:24:47 2018 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sun Jan 21 18:21:30 2018 -0500 |
tree | 8f907f5b9b1436e2b26d7fb6ed25261a06f5ea2e | |
parent | 4c6b7f6307d46ca3dcb8a32975fe68d153832176 [diff] |
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>