diff options
| author | Petr Machata <petrm@nvidia.com> | 2023-06-12 17:31:06 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2023-06-14 13:12:20 +0200 |
| commit | 571c56911b45059dbdd2fb7912152e3412b658cf (patch) | |
| tree | 5a6b18bccb3f27413b7cd46f3f1bca2fbeebccd9 /lib/mpi/mpi-sub-ui.c | |
| parent | 532b6e2bbc190c899086da5be1fd83e69fb41c12 (diff) | |
mlxsw: spectrum_router: Extract a helper to free a RIF
Right now freeing the object that mlxsw uses to keep track of a RIF is as
simple as calling a kfree. But later on as CRIF abstraction is brought in,
it will involve severing the link between CRIF and its RIF as well. Better
to have the logic encapsulated in a helper.
Since a helper is being introduced, make it a full-fledged destructor and
have it validate that the objects tracked at the RIF have been released.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
