Searched refs:nhc (Results 1 - 15 of 15) sorted by relevance

/linux-master/net/6lowpan/
H A Dnhc.c13 #include "nhc.h"
20 const struct lowpan_nhc *nhc; local
30 nhc = lowpan_nexthdr_nhcs[i];
31 if (!nhc)
34 if ((id & nhc->idmask) == nhc->id)
35 return nhc;
44 const struct lowpan_nhc *nhc; local
49 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr];
50 if (!(nhc
62 const struct lowpan_nhc *nhc; local
105 const struct lowpan_nhc *nhc; local
141 lowpan_nhc_add(const struct lowpan_nhc *nhc) argument
159 lowpan_nhc_del(const struct lowpan_nhc *nhc) argument
[all...]
H A Dnhc.h19 * @_id: one byte nhc id value.
20 * @_idmask: one byte nhc id mask value.
55 * @id: one byte nhc id value.
56 * @idmask: one byte nhc id mask value.
72 * lowpan_nhc_by_nexthdr - return the 6lowpan nhc by ipv6 nexthdr.
80 * we support the nhc by nexthdr field, the function will return 0. If we
81 * don't support the nhc by nexthdr this function will return -ENOENT.
83 * @skb: skb of 6LoWPAN header to read nhc and replace header.
92 * lowpan_nhc_do_compression - calling compress callback for nhc
94 * @skb: skb of 6LoWPAN header to read nhc an
[all...]
H A DMakefile4 6lowpan-y := core.o iphc.o nhc.o ndisc.o
/linux-master/include/trace/events/
H A Dfib.h16 const struct fib_nh_common *nhc, int err),
18 TP_ARGS(tb_id, flp, nhc, err),
67 dev = nhc ? nhc->nhc_dev : NULL;
70 if (nhc) {
71 if (nhc->nhc_gw_family == AF_INET) {
73 *p32 = nhc->nhc_gw.ipv4;
77 } else if (nhc->nhc_gw_family == AF_INET6) {
82 *in6 = nhc->nhc_gw.ipv6;
/linux-master/net/ipv4/
H A Dfib_semantics.c166 static void free_nh_exceptions(struct fib_nh_common *nhc) argument
171 hash = rcu_dereference_protected(nhc->nhc_exceptions, 1);
213 void fib_nh_common_release(struct fib_nh_common *nhc) argument
215 netdev_put(nhc->nhc_dev, &nhc->nhc_dev_tracker);
216 lwtstate_put(nhc->nhc_lwtstate);
217 rt_fibinfo_free_cpus(nhc->nhc_pcpu_rth_output);
218 rt_fibinfo_free(&nhc->nhc_rth_input);
219 free_nh_exceptions(nhc);
494 struct fib_nh_common *nhc local
554 const struct fib_nh_common *nhc = fib_info_nhc(fi, 0); local
584 fib_nh_common_init(struct net *net, struct fib_nh_common *nhc, struct nlattr *encap, u16 encap_type, void *cfg, gfp_t gfp_flags, struct netlink_ext_ack *extack) argument
1324 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc, unsigned char scope) argument
1344 struct fib_nh_common *nhc = res->nhc; local
1636 fib_nexthop_info(struct sk_buff *skb, const struct fib_nh_common *nhc, u8 rt_family, unsigned char *flags, bool skip_oif) argument
1707 fib_add_nexthop(struct sk_buff *skb, const struct fib_nh_common *nhc, int nh_weight, u8 rt_family, u32 nh_tclassid) argument
1832 const struct fib_nh_common *nhc = fib_info_nhc(fi, 0); local
1940 fib_nhc_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig) argument
2066 struct fib_nh_common *nhc; local
[all...]
H A Dfib_lookup.h53 res->nhc = fib_info_nhc(fi, 0);
H A Droute.c638 static void update_or_create_fnhe(struct fib_nh_common *nhc, __be32 daddr, argument
649 genid = fnhe_genid(dev_net(nhc->nhc_dev));
654 hash = rcu_dereference(nhc->nhc_exceptions);
659 rcu_assign_pointer(nhc->nhc_exceptions, hash);
718 rt = rcu_dereference(nhc->nhc_rth_input);
725 prt = per_cpu_ptr(nhc->nhc_pcpu_rth_output, i);
791 struct fib_nh_common *nhc; local
794 nhc = FIB_RES_NHC(res);
795 update_or_create_fnhe(nhc, fl4->daddr, new_gw,
1045 struct fib_nh_common *nhc; local
1328 ip_del_fnhe(struct fib_nh_common *nhc, __be32 daddr) argument
1362 find_exception(struct fib_nh_common *nhc, __be32 daddr) argument
1396 struct fib_nh_common *nhc = res->nhc; local
1469 rt_cache_route(struct fib_nh_common *nhc, struct rtable *rt) argument
1577 struct fib_nh_common *nhc = FIB_RES_NHC(*res); local
1793 struct fib_nh_common *nhc = FIB_RES_NHC(*res); local
2199 struct fib_nh_common *nhc = res->fi ? res->nhc : NULL; local
2358 struct fib_nh_common *nhc = FIB_RES_NHC(*res); local
2387 struct fib_nh_common *nhc = FIB_RES_NHC(*res); local
2567 struct fib_nh_common *nhc = FIB_RES_NHC(*res); local
3077 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); local
[all...]
H A Dfib_trie.c1427 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, int fib_flags, argument
1430 if (nhc->nhc_flags & RTNH_F_DEAD)
1433 if (ip_ignore_linkdown(nhc->nhc_dev) &&
1434 nhc->nhc_flags & RTNH_F_LINKDOWN &&
1438 if (flp->flowi4_oif && flp->flowi4_oif != nhc->nhc_oif)
1576 struct fib_nh_common *nhc; local
1610 nhc = nexthop_get_nhc_lookup(fi->nh, fib_flags, flp,
1612 if (nhc)
1618 nhc = fib_info_nhc(fi, nhsel);
1620 if (!fib_lookup_good_nhc(nhc, fib_flag
2951 const struct fib_nh_common *nhc = fib_info_nhc(fi, 0); local
3000 struct fib_nh_common *nhc = fib_info_nhc(fi, 0); local
[all...]
H A Dfib_rules.c152 struct fib_nh_common *nhc = fib_info_nhc(result->fi, 0); local
154 dev = nhc->nhc_dev;
H A Dfib_frontend.c226 struct fib_nh_common *nhc = fib_info_nhc(res.fi, 0); local
228 if (!dev || dev == nhc->nhc_dev)
319 const struct fib_nh_common *nhc = fib_info_nhc(fi, ret); local
321 if (nhc_l3mdev_matches_dev(nhc, dev)) {
/linux-master/include/net/
H A Dip_fib.h176 struct fib_nh_common *nhc; member in struct:fib_result
203 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
207 #define FIB_RES_NHC(res) ((res).nhc)
459 static inline bool nhc_l3mdev_matches_dev(const struct fib_nh_common *nhc, argument
462 if (nhc->nhc_dev == dev ||
463 l3mdev_master_ifindex_rcu(nhc->nhc_dev) == dev->ifindex)
475 void fib_nhc_update_mtu(struct fib_nh_common *nhc, u32 new, u32 orig);
534 int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
538 void fib_nh_common_release(struct fib_nh_common *nhc);
544 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, in
550 struct fib_nh_common *nhc = res->nhc; local
[all...]
H A Dvxlan.h563 struct fib_nh_common *nhc; local
565 nhc = nexthop_path_fdb_result(nh, hash >> 1);
566 if (unlikely(!nhc))
569 switch (nhc->nhc_gw_family) {
571 rdst->remote_ip.sin.sin_addr.s_addr = nhc->nhc_gw.ipv4;
575 rdst->remote_ip.sin6.sin6_addr = nhc->nhc_gw.ipv6;
H A Dnexthop.h355 struct fib_nh_common *nhc = &nhi->fib_nhc; local
358 if (fib_add_nexthop(skb, nhc, weight, rt_family, 0) < 0)
391 res->nhc = &nhi->fib_nhc;
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c107 struct fib_nh_common *nhc,
111 if (nhc->nhc_gw_family == AF_INET) {
113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4;
116 nk->addr.u.ipv6 = nhc->nhc_gw.ipv6;
119 nk->dev = nhc->nhc_dev;
134 struct fib_nh_common *nhc,
140 err = prestera_util_nhc2nc_key(sw, nhc, &tk);
304 prestera_util_kern_set_nh_offload(struct fib_nh_common *nhc, bool offloaded, bool trap) argument
307 nhc->nhc_flags |= RTNH_F_OFFLOAD;
309 nhc
106 prestera_util_nhc2nc_key(struct prestera_switch *sw, struct fib_nh_common *nhc, struct prestera_kern_neigh_cache_key *nk) argument
133 prestera_util_nhc_eq_n_cache_key(struct prestera_switch *sw, struct fib_nh_common *nhc, struct prestera_kern_neigh_cache_key *nk) argument
584 struct fib_nh_common *nhc; local
661 struct fib_nh_common *nhc; local
860 struct fib_nh_common *nhc; local
[all...]
/linux-master/net/core/
H A Dfilter.c5835 struct fib_nh_common *nhc; local
5921 nhc = res.nhc;
5924 if (nhc->nhc_lwtstate)
5927 dev = nhc->nhc_dev;
5938 if (likely(nhc->nhc_gw_family != AF_INET6)) {
5939 if (nhc->nhc_gw_family)
5940 params->ipv4_dst = nhc->nhc_gw.ipv4;
5945 *dst = nhc->nhc_gw.ipv6;
5951 if (likely(nhc
[all...]

Completed in 535 milliseconds