Skip to content

Commit 396b80c

Browse files
OrlovEIkuba-moo
authored andcommitted
net: marvell: prestera: Add neighbour cache accounting
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 <tchornyi@marvell.com> Signed-off-by: Taras Chornyi <tchornyi@marvell.com> Co-developed-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu> Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu> Signed-off-by: Yevhen Orlov <yevhen.orlov@plvision.eu> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8b1ef49 commit 396b80c

File tree

2 files changed

+797
-3
lines changed

2 files changed

+797
-3
lines changed

drivers/net/ethernet/marvell/prestera/prestera.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ struct prestera_router {
316316
struct rhashtable nh_neigh_ht;
317317
struct rhashtable nexthop_group_ht;
318318
struct rhashtable fib_ht;
319+
struct rhashtable kern_neigh_cache_ht;
319320
struct rhashtable kern_fib_cache_ht;
320321
struct notifier_block inetaddr_nb;
321322
struct notifier_block inetaddr_valid_nb;

0 commit comments

Comments
 (0)