Lines Matching refs:nh_neigh
822 struct prestera_nh_neigh *nh_neigh; in __prestera_k_arb_nc_apply() local
829 nh_neigh = prestera_nh_neigh_find(sw, &nh_key); in __prestera_k_arb_nc_apply()
830 if (!nh_neigh) in __prestera_k_arb_nc_apply()
834 if (memcmp(&nc->nh_neigh_info, &nh_neigh->info, in __prestera_k_arb_nc_apply()
835 sizeof(nh_neigh->info))) { in __prestera_k_arb_nc_apply()
836 memcpy(&nh_neigh->info, &nc->nh_neigh_info, in __prestera_k_arb_nc_apply()
837 sizeof(nh_neigh->info)); in __prestera_k_arb_nc_apply()
838 err = prestera_nh_neigh_set(sw, nh_neigh); in __prestera_k_arb_nc_apply()
842 &nh_neigh->key.addr.u.ipv4, in __prestera_k_arb_nc_apply()
843 &nh_neigh->info.ha[0]); in __prestera_k_arb_nc_apply()
1032 struct prestera_nh_neigh *nh_neigh; in __prestera_k_arb_hw_state_upd() local
1037 nh_neigh = prestera_nh_neigh_find(sw, &nh_key); in __prestera_k_arb_hw_state_upd()
1038 if (!nh_neigh) { in __prestera_k_arb_hw_state_upd()
1044 hw_active = prestera_nh_neigh_util_hw_state(sw, nh_neigh); in __prestera_k_arb_hw_state_upd()