Lines Matching refs:nk
108 struct prestera_kern_neigh_cache_key *nk) in prestera_util_nhc2nc_key() argument
110 memset(nk, 0, sizeof(*nk)); in prestera_util_nhc2nc_key()
112 nk->addr.v = PRESTERA_IPV4; in prestera_util_nhc2nc_key()
113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4; in prestera_util_nhc2nc_key()
115 nk->addr.v = PRESTERA_IPV6; in prestera_util_nhc2nc_key()
116 nk->addr.u.ipv6 = nhc->nhc_gw.ipv6; in prestera_util_nhc2nc_key()
119 nk->dev = nhc->nhc_dev; in prestera_util_nhc2nc_key()
125 struct prestera_nh_neigh_key *nk) in prestera_util_nc_key2nh_key() argument
127 memset(nk, 0, sizeof(*nk)); in prestera_util_nc_key2nh_key()
128 nk->addr = ck->addr; in prestera_util_nc_key2nh_key()
129 nk->rif = (void *)ck->dev; in prestera_util_nc_key2nh_key()
135 struct prestera_kern_neigh_cache_key *nk) in prestera_util_nhc_eq_n_cache_key() argument
144 if (memcmp(&tk, nk, sizeof(tk))) in prestera_util_nhc_eq_n_cache_key()