Home
last modified time | relevance | path

Searched refs:lwtunnel_state (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/include/net/
Dlwtunnel.h25 struct lwtunnel_state { struct
39 struct lwtunnel_state **ts, argument
41 void (*destroy_state)(struct lwtunnel_state *lws);
45 struct lwtunnel_state *lwtstate);
46 int (*get_encap_size)(struct lwtunnel_state *lwtstate);
47 int (*cmp_encap)(struct lwtunnel_state *a, struct lwtunnel_state *b);
54 void lwtstate_free(struct lwtunnel_state *lws);
56 static inline struct lwtunnel_state *
57 lwtstate_get(struct lwtunnel_state *lws) in lwtstate_get()
65 static inline void lwtstate_put(struct lwtunnel_state *lws) in lwtstate_put()
[all …]
Dmpls_iptunnel.h17 static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate) in mpls_lwtunnel_encap()
Dip_tunnels.h480 static inline struct ip_tunnel_info *lwt_tun_info(struct lwtunnel_state *lwtstate) in lwt_tun_info()
500 static inline struct ip_tunnel_info *lwt_tun_info(struct lwtunnel_state *lwtstate) in lwt_tun_info()
Ddst.h72 struct lwtunnel_state *lwtstate;
Dip_fib.h87 struct lwtunnel_state *nhc_lwtstate;
/Linux-v5.4/net/core/
Dlwtunnel.c57 struct lwtunnel_state *lwtunnel_state_alloc(int encap_len) in lwtunnel_state_alloc()
59 struct lwtunnel_state *lws; in lwtunnel_state_alloc()
103 const void *cfg, struct lwtunnel_state **lws, in lwtunnel_build_state()
207 void lwtstate_free(struct lwtunnel_state *lws) in lwtstate_free()
221 int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate, in lwtunnel_fill_encap()
262 int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate) in lwtunnel_get_encap_size()
284 int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b) in lwtunnel_cmp_encap()
316 struct lwtunnel_state *lwtstate; in lwtunnel_output()
350 struct lwtunnel_state *lwtstate; in lwtunnel_xmit()
385 struct lwtunnel_state *lwtstate; in lwtunnel_input()
Dlwt_bpf.c29 static inline struct bpf_lwt *bpf_lwt_lwtunnel(struct lwtunnel_state *lwt) in bpf_lwt_lwtunnel()
320 static void bpf_destroy_state(struct lwtunnel_state *lwt) in bpf_destroy_state()
374 struct lwtunnel_state **ts, in bpf_build_state()
378 struct lwtunnel_state *newts; in bpf_build_state()
465 static int bpf_fill_encap_info(struct sk_buff *skb, struct lwtunnel_state *lwt) in bpf_fill_encap_info()
477 static int bpf_encap_nlsize(struct lwtunnel_state *lwtstate) in bpf_encap_nlsize()
504 static int bpf_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b) in bpf_encap_cmp()
/Linux-v5.4/net/ipv6/ila/
Dila_lwt.c27 struct lwtunnel_state *lwt) in ila_lwt_lwtunnel()
33 struct lwtunnel_state *lwt) in ila_params_lwtunnel()
130 struct lwtunnel_state **ts, in ila_build_state()
136 struct lwtunnel_state *newts; in ila_build_state()
257 static void ila_destroy_state(struct lwtunnel_state *lwt) in ila_destroy_state()
263 struct lwtunnel_state *lwtstate) in ila_fill_encap_info()
289 static int ila_encap_nlsize(struct lwtunnel_state *lwtstate) in ila_encap_nlsize()
298 static int ila_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b) in ila_encap_cmp()
/Linux-v5.4/net/ipv4/
Dip_tunnel_core.c224 struct lwtunnel_state **ts, in ip_tun_build_state()
228 struct lwtunnel_state *new_state; in ip_tun_build_state()
279 static void ip_tun_destroy_state(struct lwtunnel_state *lwtstate) in ip_tun_destroy_state()
289 struct lwtunnel_state *lwtstate) in ip_tun_fill_encap_info()
305 static int ip_tun_encap_nlsize(struct lwtunnel_state *lwtstate) in ip_tun_encap_nlsize()
315 static int ip_tun_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b) in ip_tun_cmp_encap()
341 struct lwtunnel_state **ts, in ip6_tun_build_state()
345 struct lwtunnel_state *new_state; in ip6_tun_build_state()
389 struct lwtunnel_state *lwtstate) in ip6_tun_fill_encap_info()
405 static int ip6_tun_encap_nlsize(struct lwtunnel_state *lwtstate) in ip6_tun_encap_nlsize()
Dfib_semantics.c578 struct lwtunnel_state *lwtstate; in fib_nh_common_init()
816 struct lwtunnel_state *lwtstate; in fib_encap_match()
/Linux-v5.4/net/mpls/
Dmpls_iptunnel.c167 struct lwtunnel_state **ts, in mpls_build_state()
172 struct lwtunnel_state *newts; in mpls_build_state()
229 struct lwtunnel_state *lwtstate) in mpls_fill_encap_info()
249 static int mpls_encap_nlsize(struct lwtunnel_state *lwtstate) in mpls_encap_nlsize()
264 static int mpls_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b) in mpls_encap_cmp()
/Linux-v5.4/net/ipv6/
Dseg6_iptunnel.c35 static inline struct seg6_lwt *seg6_lwt_lwtunnel(struct lwtunnel_state *lwt) in seg6_lwt_lwtunnel()
41 seg6_encap_lwtunnel(struct lwtunnel_state *lwt) in seg6_encap_lwtunnel()
381 struct lwtunnel_state **ts, in seg6_build_state()
386 struct lwtunnel_state *newts; in seg6_build_state()
459 static void seg6_destroy_state(struct lwtunnel_state *lwt) in seg6_destroy_state()
465 struct lwtunnel_state *lwtstate) in seg6_fill_encap_info()
475 static int seg6_encap_nlsize(struct lwtunnel_state *lwtstate) in seg6_encap_nlsize()
482 static int seg6_encap_cmp(struct lwtunnel_state *a, struct lwtunnel_state *b) in seg6_encap_cmp()
Dseg6_local.c61 static struct seg6_local_lwt *seg6_local_lwtunnel(struct lwtunnel_state *lwt) in seg6_local_lwtunnel()
958 const void *cfg, struct lwtunnel_state **ts, in seg6_local_build_state()
962 struct lwtunnel_state *newts; in seg6_local_build_state()
1003 static void seg6_local_destroy_state(struct lwtunnel_state *lwt) in seg6_local_destroy_state()
1018 struct lwtunnel_state *lwt) in seg6_local_fill_encap()
1039 static int seg6_local_get_encap_size(struct lwtunnel_state *lwt) in seg6_local_get_encap_size()
1075 static int seg6_local_cmp_encap(struct lwtunnel_state *a, in seg6_local_cmp_encap()
1076 struct lwtunnel_state *b) in seg6_local_cmp_encap()