Searched refs:newts (Results 1 – 5 of 5) sorted by relevance
245 struct lwtunnel_state *newts; in bpf_build_state() local259 newts = lwtunnel_state_alloc(sizeof(*bpf)); in bpf_build_state()260 if (!newts) in bpf_build_state()263 newts->type = LWTUNNEL_ENCAP_BPF; in bpf_build_state()264 bpf = bpf_lwt_lwtunnel(newts); in bpf_build_state()267 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in bpf_build_state()275 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in bpf_build_state()283 newts->flags |= LWTUNNEL_STATE_XMIT_REDIRECT; in bpf_build_state()298 newts->headroom = headroom; in bpf_build_state()302 *ts = newts; in bpf_build_state()[all …]
167 struct lwtunnel_state *newts; in mpls_build_state() local186 newts = lwtunnel_state_alloc(sizeof(*tun_encap_info) + in mpls_build_state()188 if (!newts) in mpls_build_state()191 tun_encap_info = mpls_lwtunnel_encap(newts); in mpls_build_state()208 newts->type = LWTUNNEL_ENCAP_MPLS; in mpls_build_state()209 newts->flags |= LWTUNNEL_STATE_XMIT_REDIRECT; in mpls_build_state()210 newts->headroom = mpls_encap_size(tun_encap_info); in mpls_build_state()212 *ts = newts; in mpls_build_state()217 kfree(newts); in mpls_build_state()
136 struct lwtunnel_state *newts; in ila_build_state() local218 newts = lwtunnel_state_alloc(sizeof(*ilwt)); in ila_build_state()219 if (!newts) in ila_build_state()222 ilwt = ila_lwt_lwtunnel(newts); in ila_build_state()225 kfree(newts); in ila_build_state()231 p = ila_params_lwtunnel(newts); in ila_build_state()244 newts->type = LWTUNNEL_ENCAP_ILA; in ila_build_state()245 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT | in ila_build_state()251 *ts = newts; in ila_build_state()
388 struct lwtunnel_state *newts; in seg6_build_state() local434 newts = lwtunnel_state_alloc(tuninfo_len + sizeof(*slwt)); in seg6_build_state()435 if (!newts) in seg6_build_state()438 slwt = seg6_lwt_lwtunnel(newts); in seg6_build_state()442 kfree(newts); in seg6_build_state()448 newts->type = LWTUNNEL_ENCAP_SEG6; in seg6_build_state()449 newts->flags |= LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_build_state()452 newts->flags |= LWTUNNEL_STATE_OUTPUT_REDIRECT; in seg6_build_state()454 newts->headroom = seg6_lwt_headroom(tuninfo); in seg6_build_state()456 *ts = newts; in seg6_build_state()
955 struct lwtunnel_state *newts; in seg6_local_build_state() local971 newts = lwtunnel_state_alloc(sizeof(*slwt)); in seg6_local_build_state()972 if (!newts) in seg6_local_build_state()975 slwt = seg6_local_lwtunnel(newts); in seg6_local_build_state()982 newts->type = LWTUNNEL_ENCAP_SEG6_LOCAL; in seg6_local_build_state()983 newts->flags = LWTUNNEL_STATE_INPUT_REDIRECT; in seg6_local_build_state()984 newts->headroom = slwt->headroom; in seg6_local_build_state()986 *ts = newts; in seg6_local_build_state()992 kfree(newts); in seg6_local_build_state()