Home
last modified time | relevance | path

Searched refs:newts (Results 1 – 6 of 6) sorted by relevance

/linux/net/mpls/
A Dmpls_iptunnel.c172 struct lwtunnel_state *newts; in mpls_build_state() local
191 newts = lwtunnel_state_alloc(struct_size(tun_encap_info, label, in mpls_build_state()
193 if (!newts) in mpls_build_state()
196 tun_encap_info = mpls_lwtunnel_encap(newts); in mpls_build_state()
213 newts->type = LWTUNNEL_ENCAP_MPLS; in mpls_build_state()
214 newts->flags |= LWTUNNEL_STATE_XMIT_REDIRECT; in mpls_build_state()
215 newts->headroom = mpls_encap_size(tun_encap_info); in mpls_build_state()
217 *ts = newts; in mpls_build_state()
222 kfree(newts); in mpls_build_state()
/linux/net/ipv6/ila/
A Dila_lwt.c136 struct lwtunnel_state *newts; in ila_build_state() local
219 newts = lwtunnel_state_alloc(sizeof(*ilwt)); in ila_build_state()
220 if (!newts) in ila_build_state()
223 ilwt = ila_lwt_lwtunnel(newts); in ila_build_state()
226 kfree(newts); in ila_build_state()
232 p = ila_params_lwtunnel(newts); in ila_build_state()
245 newts->type = LWTUNNEL_ENCAP_ILA; in ila_build_state()
246 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT | in ila_build_state()
252 *ts = newts; in ila_build_state()
/linux/net/ipv6/
A Drpl_iptunnel.c73 struct lwtunnel_state *newts; in rpl_build_state() local
99 newts = lwtunnel_state_alloc(srh_len + sizeof(*rlwt)); in rpl_build_state()
100 if (!newts) in rpl_build_state()
103 rlwt = rpl_lwt_lwtunnel(newts); in rpl_build_state()
107 kfree(newts); in rpl_build_state()
113 newts->type = LWTUNNEL_ENCAP_RPL; in rpl_build_state()
114 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in rpl_build_state()
115 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in rpl_build_state()
117 *ts = newts; in rpl_build_state()
A Dseg6_iptunnel.c479 struct lwtunnel_state *newts; in seg6_build_state() local
525 newts = lwtunnel_state_alloc(tuninfo_len + sizeof(*slwt)); in seg6_build_state()
526 if (!newts) in seg6_build_state()
529 slwt = seg6_lwt_lwtunnel(newts); in seg6_build_state()
533 kfree(newts); in seg6_build_state()
539 newts->type = LWTUNNEL_ENCAP_SEG6; in seg6_build_state()
540 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_build_state()
543 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in seg6_build_state()
545 newts->headroom = seg6_lwt_headroom(tuninfo); in seg6_build_state()
547 *ts = newts; in seg6_build_state()
A Dseg6_local.c1780 struct lwtunnel_state *newts; in seg6_local_build_state() local
1796 newts = lwtunnel_state_alloc(sizeof(*slwt)); in seg6_local_build_state()
1797 if (!newts) in seg6_local_build_state()
1800 slwt = seg6_local_lwtunnel(newts); in seg6_local_build_state()
1811 newts->type = LWTUNNEL_ENCAP_SEG6_LOCAL; in seg6_local_build_state()
1812 newts->flags = LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_local_build_state()
1813 newts->headroom = slwt->headroom; in seg6_local_build_state()
1815 *ts = newts; in seg6_local_build_state()
1822 kfree(newts); in seg6_local_build_state()
/linux/net/core/
A Dlwt_bpf.c376 struct lwtunnel_state *newts; in bpf_build_state() local
391 newts = lwtunnel_state_alloc(sizeof(*bpf)); in bpf_build_state()
392 if (!newts) in bpf_build_state()
395 newts->type = LWTUNNEL_ENCAP_BPF; in bpf_build_state()
396 bpf = bpf_lwt_lwtunnel(newts); in bpf_build_state()
399 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in bpf_build_state()
415 newts->flags |= LWTUNNEL_STATE_XMIT_REDIRECT; in bpf_build_state()
430 newts->headroom = headroom; in bpf_build_state()
434 *ts = newts; in bpf_build_state()
439 bpf_destroy_state(newts); in bpf_build_state()
[all …]

Completed in 15 milliseconds