diff options
author | Yevhen Orlov <[email protected]> | 2021-12-27 23:52:29 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-12-30 13:12:09 +0000 |
commit | bca5859bc6c60956585b57220b6ed619e23a6a7b (patch) | |
tree | a1cc0c3701c6e6e65869413a49df10c82494d0f4 /net/unix/sysctl_net_unix.c | |
parent | 69204174cc5cb3905f18a3a123f8b95c6622dba2 (diff) |
net: marvell: prestera: add hardware router objects accounting
Add prestera_router_hw.c. This file contains functions, which track HW
objects relations and links. This include implicity creation of objects,
that needed by requested one and implicity removing of objects, which
reference counter is became zero.
We need this layer, because kernel callbacks not always mapped to
creation of single HW object. So let it be two different layers - one
for subscribing and parsing kernel structures, and another
(prestera_router_hw.c) for HW objects relations tracking.
There is two types of objects on router_hw layer:
- Explicit objects (rif_entry) : created by higher layer.
- Implicit objects (vr) : created on demand by explicit objects.
Co-developed-by: Taras Chornyi <[email protected]>
Signed-off-by: Taras Chornyi <[email protected]>
Co-developed-by: Oleksandr Mazur <[email protected]>
Signed-off-by: Oleksandr Mazur <[email protected]>
Signed-off-by: Yevhen Orlov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions