Searched refs:newts (Results 1 – 5 of 5) sorted by relevance
136 struct lwtunnel_state *newts; in ila_build_state() local219 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()
172 struct lwtunnel_state *newts; in mpls_build_state() local191 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()
386 struct lwtunnel_state *newts; in seg6_build_state() local432 newts = lwtunnel_state_alloc(tuninfo_len + sizeof(*slwt)); in seg6_build_state()433 if (!newts) in seg6_build_state()436 slwt = seg6_lwt_lwtunnel(newts); in seg6_build_state()440 kfree(newts); in seg6_build_state()446 newts->type = LWTUNNEL_ENCAP_SEG6; in seg6_build_state()447 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_build_state()450 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in seg6_build_state()452 newts->headroom = seg6_lwt_headroom(tuninfo); in seg6_build_state()454 *ts = newts; in seg6_build_state()
962 struct lwtunnel_state *newts; in seg6_local_build_state() local978 newts = lwtunnel_state_alloc(sizeof(*slwt)); in seg6_local_build_state()979 if (!newts) in seg6_local_build_state()982 slwt = seg6_local_lwtunnel(newts); in seg6_local_build_state()989 newts->type = LWTUNNEL_ENCAP_SEG6_LOCAL; in seg6_local_build_state()990 newts->flags = LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_local_build_state()991 newts->headroom = slwt->headroom; in seg6_local_build_state()993 *ts = newts; in seg6_local_build_state()999 kfree(newts); in seg6_local_build_state()
378 struct lwtunnel_state *newts; in bpf_build_state() local393 newts = lwtunnel_state_alloc(sizeof(*bpf)); in bpf_build_state()394 if (!newts) in bpf_build_state()397 newts->type = LWTUNNEL_ENCAP_BPF; in bpf_build_state()398 bpf = bpf_lwt_lwtunnel(newts); in bpf_build_state()401 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in bpf_build_state()409 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in bpf_build_state()417 newts->flags |= LWTUNNEL_STATE_XMIT_REDIRECT; in bpf_build_state()432 newts->headroom = headroom; in bpf_build_state()436 *ts = newts; in bpf_build_state()[all …]