Commit 571c569
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 <[email protected]>
Reviewed-by: Amit Cohen <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>1 parent 532b6e2 commit 571c569
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7903 | 7903 | | |
7904 | 7904 | | |
7905 | 7905 | | |
| 7906 | + | |
| 7907 | + | |
| 7908 | + | |
| 7909 | + | |
| 7910 | + | |
| 7911 | + | |
| 7912 | + | |
7906 | 7913 | | |
7907 | 7914 | | |
7908 | 7915 | | |
| |||
8209 | 8216 | | |
8210 | 8217 | | |
8211 | 8218 | | |
8212 | | - | |
| 8219 | + | |
8213 | 8220 | | |
8214 | 8221 | | |
8215 | 8222 | | |
| |||
8249 | 8256 | | |
8250 | 8257 | | |
8251 | 8258 | | |
8252 | | - | |
| 8259 | + | |
8253 | 8260 | | |
8254 | 8261 | | |
8255 | 8262 | | |
| |||
9902 | 9909 | | |
9903 | 9910 | | |
9904 | 9911 | | |
9905 | | - | |
| 9912 | + | |
9906 | 9913 | | |
9907 | 9914 | | |
9908 | 9915 | | |
| |||
9917 | 9924 | | |
9918 | 9925 | | |
9919 | 9926 | | |
9920 | | - | |
| 9927 | + | |
9921 | 9928 | | |
9922 | 9929 | | |
9923 | 9930 | | |
| |||
0 commit comments