Home
last modified time | relevance | path

Searched refs:nhc (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/net/6lowpan/
Dnhc.c20 const struct lowpan_nhc *nhc; in lowpan_nhc_by_nhcid() local
30 nhc = lowpan_nexthdr_nhcs[i]; in lowpan_nhc_by_nhcid()
31 if (!nhc) in lowpan_nhc_by_nhcid()
34 if ((id & nhc->idmask) == nhc->id) in lowpan_nhc_by_nhcid()
35 return nhc; in lowpan_nhc_by_nhcid()
44 const struct lowpan_nhc *nhc; in lowpan_nhc_check_compression() local
49 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_check_compression()
50 if (!(nhc && nhc->compress)) in lowpan_nhc_check_compression()
62 const struct lowpan_nhc *nhc; in lowpan_nhc_do_compression() local
66 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_do_compression()
[all …]
Dnhc.h119 int lowpan_nhc_add(const struct lowpan_nhc *nhc);
126 void lowpan_nhc_del(const struct lowpan_nhc *nhc);
DMakefile4 6lowpan-y := core.o iphc.o nhc.o ndisc.o
/linux-6.1.9/include/trace/events/
Dfib.h16 const struct fib_nh_common *nhc, int err),
18 TP_ARGS(tb_id, flp, nhc, err),
68 dev = nhc ? nhc->nhc_dev : NULL;
71 if (nhc) {
72 if (nhc->nhc_gw_family == AF_INET) {
74 *p32 = nhc->nhc_gw.ipv4;
78 } else if (nhc->nhc_gw_family == AF_INET6) {
83 *in6 = nhc->nhc_gw.ipv6;
/linux-6.1.9/net/ipv4/
Dfib_semantics.c166 static void free_nh_exceptions(struct fib_nh_common *nhc) in free_nh_exceptions() argument
171 hash = rcu_dereference_protected(nhc->nhc_exceptions, 1); in free_nh_exceptions()
213 void fib_nh_common_release(struct fib_nh_common *nhc) in fib_nh_common_release() argument
215 netdev_put(nhc->nhc_dev, &nhc->nhc_dev_tracker); in fib_nh_common_release()
216 lwtstate_put(nhc->nhc_lwtstate); in fib_nh_common_release()
217 rt_fibinfo_free_cpus(nhc->nhc_pcpu_rth_output); in fib_nh_common_release()
218 rt_fibinfo_free(&nhc->nhc_rth_input); in fib_nh_common_release()
219 free_nh_exceptions(nhc); in fib_nh_common_release()
493 struct fib_nh_common *nhc = fib_info_nhc(fi, i); in fib_nlmsg_size() local
495 if (nhc->nhc_lwtstate) { in fib_nlmsg_size()
[all …]
Droute.c638 static void update_or_create_fnhe(struct fib_nh_common *nhc, __be32 daddr, in update_or_create_fnhe() argument
649 genid = fnhe_genid(dev_net(nhc->nhc_dev)); in update_or_create_fnhe()
654 hash = rcu_dereference(nhc->nhc_exceptions); in update_or_create_fnhe()
659 rcu_assign_pointer(nhc->nhc_exceptions, hash); in update_or_create_fnhe()
718 rt = rcu_dereference(nhc->nhc_rth_input); in update_or_create_fnhe()
725 prt = per_cpu_ptr(nhc->nhc_pcpu_rth_output, i); in update_or_create_fnhe()
791 struct fib_nh_common *nhc; in __ip_do_redirect() local
794 nhc = FIB_RES_NHC(res); in __ip_do_redirect()
795 update_or_create_fnhe(nhc, fl4->daddr, new_gw, in __ip_do_redirect()
1047 struct fib_nh_common *nhc; in __ip_rt_update_pmtu() local
[all …]
Dfib_trie.c1426 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, int fib_flags, in fib_lookup_good_nhc() argument
1429 if (nhc->nhc_flags & RTNH_F_DEAD) in fib_lookup_good_nhc()
1432 if (ip_ignore_linkdown(nhc->nhc_dev) && in fib_lookup_good_nhc()
1433 nhc->nhc_flags & RTNH_F_LINKDOWN && in fib_lookup_good_nhc()
1437 if (flp->flowi4_oif && flp->flowi4_oif != nhc->nhc_oif) in fib_lookup_good_nhc()
1575 struct fib_nh_common *nhc; in fib_table_lookup() local
1608 nhc = nexthop_get_nhc_lookup(fi->nh, fib_flags, flp, in fib_table_lookup()
1610 if (nhc) in fib_table_lookup()
1616 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1618 if (!fib_lookup_good_nhc(nhc, fib_flags, flp)) in fib_table_lookup()
[all …]
Dfib_lookup.h53 res->nhc = fib_info_nhc(fi, 0); in fib_result_assign()
Dfib_rules.c152 struct fib_nh_common *nhc = fib_info_nhc(result->fi, 0); in fib4_rule_suppress() local
154 dev = nhc->nhc_dev; in fib4_rule_suppress()
Dfib_frontend.c226 struct fib_nh_common *nhc = fib_info_nhc(res.fi, 0); in __inet_dev_addr_type() local
228 if (!dev || dev == nhc->nhc_dev) in __inet_dev_addr_type()
319 const struct fib_nh_common *nhc = fib_info_nhc(fi, ret); in fib_info_nh_uses_dev() local
321 if (nhc_l3mdev_matches_dev(nhc, dev)) { in fib_info_nh_uses_dev()
/linux-6.1.9/include/net/
Dip_fib.h175 struct fib_nh_common *nhc; member
202 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
206 #define FIB_RES_NHC(res) ((res).nhc)
454 static inline bool nhc_l3mdev_matches_dev(const struct fib_nh_common *nhc, in nhc_l3mdev_matches_dev() argument
457 if (nhc->nhc_dev == dev || in nhc_l3mdev_matches_dev()
458 l3mdev_master_ifindex_rcu(nhc->nhc_dev) == dev->ifindex) in nhc_l3mdev_matches_dev()
470 void fib_nhc_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig);
529 int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
533 void fib_nh_common_release(struct fib_nh_common *nhc);
539 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, int fib_flags,
[all …]
Dvxlan.h549 struct fib_nh_common *nhc; in vxlan_fdb_nh_path_select() local
551 nhc = nexthop_path_fdb_result(nh, hash); in vxlan_fdb_nh_path_select()
552 if (unlikely(!nhc)) in vxlan_fdb_nh_path_select()
555 switch (nhc->nhc_gw_family) { in vxlan_fdb_nh_path_select()
557 rdst->remote_ip.sin.sin_addr.s_addr = nhc->nhc_gw.ipv4; in vxlan_fdb_nh_path_select()
561 rdst->remote_ip.sin6.sin6_addr = nhc->nhc_gw.ipv6; in vxlan_fdb_nh_path_select()
Dnexthop.h325 struct fib_nh_common *nhc = &nhi->fib_nhc; in nexthop_mpath_fill_node() local
328 if (fib_add_nexthop(skb, nhc, weight, rt_family, 0) < 0) in nexthop_mpath_fill_node()
361 res->nhc = &nhi->fib_nhc; in nexthop_path_fib_result()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_router.c107 struct fib_nh_common *nhc, in prestera_util_nhc2nc_key() argument
111 if (nhc->nhc_gw_family == AF_INET) { in prestera_util_nhc2nc_key()
113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4; 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()
134 struct fib_nh_common *nhc, in prestera_util_nhc_eq_n_cache_key() argument
140 err = prestera_util_nhc2nc_key(sw, nhc, &tk); in prestera_util_nhc_eq_n_cache_key()
304 prestera_util_kern_set_nh_offload(struct fib_nh_common *nhc, bool offloaded, bool trap) in prestera_util_kern_set_nh_offload() argument
307 nhc->nhc_flags |= RTNH_F_OFFLOAD; in prestera_util_kern_set_nh_offload()
309 nhc->nhc_flags &= ~RTNH_F_OFFLOAD; in prestera_util_kern_set_nh_offload()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/display/panel/
Dpanel-simple.yaml224 - logictechno,lt161010-2nhc
/linux-6.1.9/net/core/
Dfilter.c5702 struct fib_nh_common *nhc; in bpf_ipv4_fib_lookup() local
5782 nhc = res.nhc; in bpf_ipv4_fib_lookup()
5785 if (nhc->nhc_lwtstate) in bpf_ipv4_fib_lookup()
5788 dev = nhc->nhc_dev; in bpf_ipv4_fib_lookup()
5796 if (likely(nhc->nhc_gw_family != AF_INET6)) { in bpf_ipv4_fib_lookup()
5797 if (nhc->nhc_gw_family) in bpf_ipv4_fib_lookup()
5798 params->ipv4_dst = nhc->nhc_gw.ipv4; in bpf_ipv4_fib_lookup()
5806 *dst = nhc->nhc_gw.ipv6; in bpf_ipv4_fib_lookup()