Skip to content

Commit

Permalink
net: marvell: prestera: Add neighbour cache accounting
Browse files Browse the repository at this point in the history
Move forward and use new PRESTERA_FIB_TYPE_UC_NH to provide basic
nexthop routes support.
Provide deinitialization sequence for all created router objects.

Limitations:
- Only "local" and "main" tables supported
- Only generic interfaces supported for router (no bridges or vlans)

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: Jakub Kicinski <[email protected]>
  • Loading branch information
OrlovEI authored and kuba-moo committed Oct 4, 2022
1 parent 8b1ef49 commit 396b80c
Show file tree
Hide file tree
Showing 2 changed files with 797 additions and 3 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/marvell/prestera/prestera.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ struct prestera_router {
struct rhashtable nh_neigh_ht;
struct rhashtable nexthop_group_ht;
struct rhashtable fib_ht;
struct rhashtable kern_neigh_cache_ht;
struct rhashtable kern_fib_cache_ht;
struct notifier_block inetaddr_nb;
struct notifier_block inetaddr_valid_nb;
Expand Down
Loading

0 comments on commit 396b80c

Please sign in to comment.