diff options
| author | Takamitsu Iwai <[email protected]> | 2025-08-23 08:58:55 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-08-27 14:43:08 +0000 |
| commit | dcb34659028f856c423a29ef9b4e2571d203444d (patch) | |
| tree | d4c9e40f6587fd8438ecbc09b851522ea6a08484 /net/rose/rose_timer.c | |
| parent | net: hv_netvsc: fix loss of early receive events from host during channel open. (diff) | |
| download | kernel-dcb34659028f856c423a29ef9b4e2571d203444d.tar.gz kernel-dcb34659028f856c423a29ef9b4e2571d203444d.zip | |
net: rose: split remove and free operations in rose_remove_neigh()
The current rose_remove_neigh() performs two distinct operations:
1. Removes rose_neigh from rose_neigh_list
2. Frees the rose_neigh structure
Split these operations into separate functions to improve maintainability
and prepare for upcoming refcount_t conversion. The timer cleanup remains
in rose_remove_neigh() because free operations can be called from timer
itself.
This patch introduce rose_neigh_put() to handle the freeing of rose_neigh
structures and modify rose_remove_neigh() to handle removal only.
Signed-off-by: Takamitsu Iwai <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/rose/rose_timer.c')
0 files changed, 0 insertions, 0 deletions
