Lines Matching full:router

458 	 rhashtable_lookup_fast(&sw->router->kern_neigh_cache_ht, key,  in prestera_kern_neigh_cache_find()
474 rhashtable_remove_fast(&sw->router->kern_neigh_cache_ht, in __prestera_kern_neigh_cache_destroy()
496 err = rhashtable_insert_fast(&sw->router->kern_neigh_cache_ht, in __prestera_kern_neigh_cache_create()
544 rhashtable_lookup_fast(&sw->router->kern_fib_cache_ht, key, in prestera_kern_fib_cache_find()
571 rhashtable_remove_fast(&sw->router->kern_fib_cache_ht, in prestera_kern_fib_cache_destroy()
634 err = rhashtable_insert_fast(&sw->router->kern_fib_cache_ht, in prestera_kern_fib_cache_create()
1081 rhashtable_walk_enter(&sw->router->kern_neigh_cache_ht, &iter); in prestera_k_arb_hw_evt()
1131 rhashtable_walk_enter(&sw->router->kern_neigh_cache_ht, &iter); in __prestera_k_arb_fib_evt2nc()
1259 rhashtable_free_and_destroy(&sw->router->kern_fib_cache_ht, in prestera_k_arb_abort()
1262 rhashtable_free_and_destroy(&sw->router->kern_neigh_cache_ht, in prestera_k_arb_abort()
1334 struct prestera_router *router = container_of(nb, in __prestera_inetaddr_cb() local
1348 err = __prestera_inetaddr_event(router->sw, dev, event, NULL); in __prestera_inetaddr_cb()
1358 struct prestera_router *router = container_of(nb, in __prestera_inetaddr_valid_cb() local
1379 err = __prestera_inetaddr_event(router->sw, dev, event, ivi->extack); in __prestera_inetaddr_valid_cb()
1436 struct prestera_router *router; in __prestera_router_fib_event() local
1441 router = container_of(nb, struct prestera_router, fib_nb); in __prestera_router_fib_event()
1458 fib_work->sw = router->sw; in __prestera_router_fib_event()
1496 struct prestera_router *router; in prestera_router_netevent_event() local
1499 router = container_of(nb, struct prestera_router, netevent_nb); in prestera_router_netevent_event()
1512 net_work->sw = router->sw; in prestera_router_netevent_event()
1522 struct prestera_router *router; in prestera_router_update_neighs_work() local
1524 router = container_of(work, struct prestera_router, in prestera_router_update_neighs_work()
1528 prestera_k_arb_hw_evt(router->sw); in prestera_router_update_neighs_work()
1531 prestera_queue_delayed_work(&router->neighs_update.dw, in prestera_router_update_neighs_work()
1537 INIT_DELAYED_WORK(&sw->router->neighs_update.dw, in prestera_neigh_work_init()
1539 prestera_queue_delayed_work(&sw->router->neighs_update.dw, 0); in prestera_neigh_work_init()
1545 cancel_delayed_work_sync(&sw->router->neighs_update.dw); in prestera_neigh_work_fini()
1550 struct prestera_router *router; in prestera_router_init() local
1553 router = kzalloc(sizeof(*sw->router), GFP_KERNEL); in prestera_router_init()
1554 if (!router) in prestera_router_init()
1557 sw->router = router; in prestera_router_init()
1558 router->sw = sw; in prestera_router_init()
1564 err = rhashtable_init(&router->kern_fib_cache_ht, in prestera_router_init()
1569 err = rhashtable_init(&router->kern_neigh_cache_ht, in prestera_router_init()
1575 router->nhgrp_hw_state_cache = kzalloc(nhgrp_cache_bytes, GFP_KERNEL); in prestera_router_init()
1576 if (!router->nhgrp_hw_state_cache) { in prestera_router_init()
1585 router->inetaddr_valid_nb.notifier_call = __prestera_inetaddr_valid_cb; in prestera_router_init()
1586 err = register_inetaddr_validator_notifier(&router->inetaddr_valid_nb); in prestera_router_init()
1590 router->inetaddr_nb.notifier_call = __prestera_inetaddr_cb; in prestera_router_init()
1591 err = register_inetaddr_notifier(&router->inetaddr_nb); in prestera_router_init()
1595 router->netevent_nb.notifier_call = prestera_router_netevent_event; in prestera_router_init()
1596 err = register_netevent_notifier(&router->netevent_nb); in prestera_router_init()
1600 router->fib_nb.notifier_call = __prestera_router_fib_event; in prestera_router_init()
1601 err = register_fib_notifier(&init_net, &router->fib_nb, in prestera_router_init()
1609 unregister_netevent_notifier(&router->netevent_nb); in prestera_router_init()
1611 unregister_inetaddr_notifier(&router->inetaddr_nb); in prestera_router_init()
1613 unregister_inetaddr_validator_notifier(&router->inetaddr_valid_nb); in prestera_router_init()
1617 kfree(router->nhgrp_hw_state_cache); in prestera_router_init()
1619 rhashtable_destroy(&router->kern_neigh_cache_ht); in prestera_router_init()
1621 rhashtable_destroy(&router->kern_fib_cache_ht); in prestera_router_init()
1625 kfree(sw->router); in prestera_router_init()
1631 unregister_fib_notifier(&init_net, &sw->router->fib_nb); in prestera_router_fini()
1632 unregister_netevent_notifier(&sw->router->netevent_nb); in prestera_router_fini()
1633 unregister_inetaddr_notifier(&sw->router->inetaddr_nb); in prestera_router_fini()
1634 unregister_inetaddr_validator_notifier(&sw->router->inetaddr_valid_nb); in prestera_router_fini()
1640 kfree(sw->router->nhgrp_hw_state_cache); in prestera_router_fini()
1641 rhashtable_destroy(&sw->router->kern_fib_cache_ht); in prestera_router_fini()
1643 kfree(sw->router); in prestera_router_fini()
1644 sw->router = NULL; in prestera_router_fini()