Home
last modified time | relevance | path

Searched refs:encap (Results 1 - 25 of 201) sorted by relevance

123456789

/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c85 struct efx_tc_encap_action *encap, struct net *net, in efx_bind_neigh()
97 switch ((int)encap->type) { in efx_bind_neigh()
101 flow4.fl4_dport = encap->key.tp_dst; in efx_bind_neigh()
102 flow4.flowi4_tos = encap->key.tos; in efx_bind_neigh()
103 flow4.daddr = encap->key.u.ipv4.dst; in efx_bind_neigh()
104 flow4.saddr = encap->key.u.ipv4.src; in efx_bind_neigh()
109 flow6.fl6_dport = encap->key.tp_dst; in efx_bind_neigh()
110 flow6.flowlabel = ip6_make_flowinfo(encap->key.tos, in efx_bind_neigh()
111 encap->key.label); in efx_bind_neigh()
112 flow6.daddr = encap in efx_bind_neigh()
84 efx_bind_neigh(struct efx_nic *efx, struct efx_tc_encap_action *encap, struct net *net, struct netlink_ext_ack *extack) efx_bind_neigh() argument
235 efx_release_neigh(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_release_neigh() argument
249 efx_gen_tun_header_eth(struct efx_tc_encap_action *encap, u16 proto) efx_gen_tun_header_eth() argument
265 efx_gen_tun_header_ipv4(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) efx_gen_tun_header_ipv4() argument
285 efx_gen_tun_header_ipv6(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) efx_gen_tun_header_ipv6() argument
304 efx_gen_tun_header_udp(struct efx_tc_encap_action *encap, u8 len) efx_gen_tun_header_udp() argument
316 efx_gen_tun_header_vxlan(struct efx_tc_encap_action *encap) efx_gen_tun_header_vxlan() argument
328 efx_gen_tun_header_geneve(struct efx_tc_encap_action *encap) efx_gen_tun_header_geneve() argument
349 efx_gen_vxlan_header_ipv4(struct efx_tc_encap_action *encap) efx_gen_vxlan_header_ipv4() argument
360 efx_gen_geneve_header_ipv4(struct efx_tc_encap_action *encap) efx_gen_geneve_header_ipv4() argument
371 efx_gen_vxlan_header_ipv6(struct efx_tc_encap_action *encap) efx_gen_vxlan_header_ipv6() argument
381 efx_gen_geneve_header_ipv6(struct efx_tc_encap_action *encap) efx_gen_geneve_header_ipv6() argument
391 efx_gen_encap_header(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_gen_encap_header() argument
428 efx_tc_update_encap(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_tc_update_encap() argument
507 struct efx_tc_encap_action *encap; efx_neigh_update() local
603 struct efx_tc_encap_action *encap, *old; efx_tc_flower_create_encap_md() local
691 efx_tc_flower_release_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_tc_flower_release_encap_md() argument
705 struct efx_tc_encap_action *encap, *next; efx_tc_remove_neigh_users() local
[all...]
H A Dtc.c469 struct efx_tc_encap_match *encap) in efx_tc_flower_release_encap_match()
473 if (!refcount_dec_and_test(&encap->ref)) in efx_tc_flower_release_encap_match()
476 if (encap->type == EFX_TC_EM_DIRECT) { in efx_tc_flower_release_encap_match()
477 rc = efx_mae_unregister_encap_match(efx, encap); in efx_tc_flower_release_encap_match()
483 "Failed to release encap match %#x, rc %d\n", in efx_tc_flower_release_encap_match()
484 encap->fw_id, rc); in efx_tc_flower_release_encap_match()
486 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, in efx_tc_flower_release_encap_match()
488 if (encap->pseudo) in efx_tc_flower_release_encap_match()
489 efx_tc_flower_release_encap_match(efx, encap->pseudo); in efx_tc_flower_release_encap_match()
490 kfree(encap); in efx_tc_flower_release_encap_match()
468 efx_tc_flower_release_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) efx_tc_flower_release_encap_match() argument
501 struct efx_tc_encap_match *encap, *old, *pseudo = NULL; efx_tc_flower_record_encap_match() local
1983 struct efx_tc_encap_action *encap; efx_tc_flower_replace() local
2602 struct efx_tc_encap_match *encap = ptr; efx_tc_encap_match_free() local
[all...]
H A Dtc_counters.c90 struct efx_tc_encap_action *encap; in efx_tc_counter_work() local
99 encap = act->encap_md; in efx_tc_counter_work()
100 if (!encap) in efx_tc_counter_work()
102 if (!encap->neigh) /* can't happen */ in efx_tc_counter_work()
104 if (time_after_eq(encap->neigh->used, touched)) in efx_tc_counter_work()
106 encap->neigh->used = touched; in efx_tc_counter_work()
110 if (encap->neigh->dst_ip) in efx_tc_counter_work()
111 n = neigh_lookup(&arp_tbl, &encap->neigh->dst_ip, in efx_tc_counter_work()
112 encap->neigh->egdev); in efx_tc_counter_work()
116 &encap in efx_tc_counter_work()
[all...]
H A Dmae.h100 struct efx_tc_encap_action *encap);
102 struct efx_tc_encap_action *encap);
104 struct efx_tc_encap_action *encap);
119 struct efx_tc_encap_match *encap);
121 struct efx_tc_encap_match *encap);
H A Dmae.c712 * (and thus identified the encap protocol to use to extract it). in efx_mae_match_check_caps()
719 NL_SET_ERR_MSG_MOD(extack, "No support for encap rule ID matches"); in efx_mae_match_check_caps()
725 NL_SET_ERR_MSG_MOD(extack, "Match on enc_keyid requires other encap fields"); in efx_mae_match_check_caps()
801 NL_SET_ERR_MSG_MOD(extack, "Unexpected encap match in LHS rule"); in efx_mae_match_check_caps_lhs()
825 /* Checks that the fields needed for encap-rule matches are supported by the
955 struct efx_tc_encap_action *encap) in efx_mae_allocate_encap_md()
962 rc = efx_mae_encap_type_to_mae_type(encap->type); in efx_mae_allocate_encap_md()
966 inlen = MC_CMD_MAE_ENCAP_HEADER_ALLOC_IN_LEN(encap->encap_hdr_len); in efx_mae_allocate_encap_md()
970 encap->encap_hdr, in efx_mae_allocate_encap_md()
971 encap in efx_mae_allocate_encap_md()
954 efx_mae_allocate_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_mae_allocate_encap_md() argument
982 efx_mae_update_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_mae_update_encap_md() argument
1007 efx_mae_free_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) efx_mae_free_encap_md() argument
1474 efx_mae_register_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) efx_mae_register_encap_match() argument
1545 efx_mae_unregister_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) efx_mae_unregister_encap_match() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dfou_bpf.c29 /* bpf_skb_set_fou_encap - Set FOU encap parameters
39 * @encap Pointer to a `struct bpf_fou_encap` storing UDP src and
41 * port. This is similar to using `encap-sport auto`.
47 struct bpf_fou_encap *encap, int type) in bpf_skb_set_fou_encap()
52 if (unlikely(!encap)) in bpf_skb_set_fou_encap()
60 info->encap.type = TUNNEL_ENCAP_FOU; in bpf_skb_set_fou_encap()
63 info->encap.type = TUNNEL_ENCAP_GUE; in bpf_skb_set_fou_encap()
66 info->encap.type = TUNNEL_ENCAP_NONE; in bpf_skb_set_fou_encap()
70 info->encap.flags |= TUNNEL_ENCAP_FLAG_CSUM; in bpf_skb_set_fou_encap()
72 info->encap in bpf_skb_set_fou_encap()
46 bpf_skb_set_fou_encap(struct __sk_buff *skb_ctx, struct bpf_fou_encap *encap, int type) bpf_skb_set_fou_encap() argument
88 bpf_skb_get_fou_encap(struct __sk_buff *skb_ctx, struct bpf_fou_encap *encap) bpf_skb_get_fou_encap() argument
[all...]
H A Desp4.c136 struct xfrm_encap_tmpl *encap = x->encap; in esp_find_tcp_sk() local
148 sport = encap->encap_sport; in esp_find_tcp_sk()
149 dport = encap->encap_dport; in esp_find_tcp_sk()
177 if (encap->encap_sport != sport || in esp_find_tcp_sk()
178 encap->encap_dport != dport) { in esp_find_tcp_sk()
278 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
412 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_encap() local
768 struct xfrm_encap_tmpl *encap = x->encap; esp_input_done2() local
1172 struct xfrm_encap_tmpl *encap = x->encap; esp_init_state() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect_dynptr.c271 static ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) in accept_locally() argument
274 sizeof(*encap) + in accept_locally()
275 sizeof(struct in_addr) * encap->unigue.hop_count; in accept_locally()
279 if (encap->gue.proto_ctype == IPPROTO_IPV6) in accept_locally()
280 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); in accept_locally()
292 encap_headers_t *encap, struct in_addr *next_hop, in forward_with_gre()
296 sizeof(*encap) + in forward_with_gre()
297 sizeof(struct in_addr) * encap->unigue.hop_count; in forward_with_gre()
314 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in forward_with_gre()
419 encap_headers_t *encap, struc in forward_to_next_hop()
291 forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_with_gre() argument
418 forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_to_next_hop() argument
475 get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument
[all...]
H A Dtest_cls_redirect.c378 static INLINING ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) in accept_locally() argument
381 sizeof(*encap) + in accept_locally()
382 sizeof(struct in_addr) * encap->unigue.hop_count; in accept_locally()
386 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in accept_locally()
387 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); in accept_locally()
399 static INLINING ret_t forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, in forward_with_gre() argument
405 sizeof(*encap) + in forward_with_gre()
406 sizeof(struct in_addr) * encap->unigue.hop_count; in forward_with_gre()
419 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in forward_with_gre()
526 static INLINING ret_t forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, in forward_to_next_hop() argument
583 get_next_hop(buf_t *pkt, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument
948 encap_headers_t *encap; cls_redirect() local
[all...]
H A Dtest_tunnel_kern.c66 struct bpf_fou_encap *encap, int type) __ksym;
68 struct bpf_fou_encap *encap) __ksym;
771 struct bpf_fou_encap encap = {}; in ipip_gue_set_tunnel() local
792 encap.sport = 0; in ipip_gue_set_tunnel()
793 encap.dport = bpf_htons(5555); in ipip_gue_set_tunnel()
795 ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_GUE); in ipip_gue_set_tunnel()
808 struct bpf_fou_encap encap = {}; in ipip_fou_set_tunnel() local
829 encap.sport = 0; in ipip_fou_set_tunnel()
830 encap.dport = bpf_htons(5555); in ipip_fou_set_tunnel()
832 ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_FO in ipip_fou_set_tunnel()
846 struct bpf_fou_encap encap = {}; ipip_encap_get_tunnel() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.c377 static INLINING ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) in accept_locally() argument
380 sizeof(*encap) + in accept_locally()
381 sizeof(struct in_addr) * encap->unigue.hop_count; in accept_locally()
385 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in accept_locally()
386 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); in accept_locally()
398 static INLINING ret_t forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, in forward_with_gre() argument
404 sizeof(*encap) + in forward_with_gre()
405 sizeof(struct in_addr) * encap->unigue.hop_count; in forward_with_gre()
417 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in forward_with_gre()
519 static INLINING ret_t forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, in forward_to_next_hop() argument
576 get_next_hop(buf_t *pkt, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument
941 encap_headers_t *encap; cls_redirect() local
[all...]
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Debt_vlan.c34 __be16 encap; in ebt_vlan_mt() local
38 encap = skb->protocol; in ebt_vlan_mt()
48 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
72 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); in ebt_vlan_mt()
141 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check()
142 pr_debug("encap frame length %d is less than " in ebt_vlan_mt_check()
143 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
/kernel/linux/linux-6.6/net/bridge/netfilter/
H A Debt_vlan.c34 __be16 encap; in ebt_vlan_mt() local
38 encap = skb->protocol; in ebt_vlan_mt()
48 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
72 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); in ebt_vlan_mt()
141 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check()
142 pr_debug("encap frame length %d is less than " in ebt_vlan_mt_check()
143 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c127 /* Flow can be associated with multiple encap entries. in mlx5e_tc_flow_all_encaps_valid()
196 /* update from slow path rule to encap rule */ in mlx5e_tc_encap_flows_add()
231 /* mark the flow's encap dest as non-valid */ in mlx5e_tc_encap_flows_del()
242 /* update from encap rule to slow path rule */ in mlx5e_tc_encap_flows_del()
248 mlx5_core_warn(priv->mdev, "Failed to update slow path (encap) flow, %d\n", in mlx5e_tc_encap_flows_del()
260 /* we know that the encap is valid */ in mlx5e_tc_encap_flows_del()
272 * unoffloaded from hardware, otherwise deleting encap will in mlx5e_take_tmp_flow()
284 /* Takes reference to all flows attached to encap and adds the flows to
322 /* find encap with non-zero reference counter value */ in mlx5e_get_next_matching_encap()
341 /* release starting encap */ in mlx5e_get_next_matching_encap()
792 struct mlx5e_tc_tun_encap *encap; mlx5e_route_tbl_get_last_update() local
1158 mlx5e_route_get(struct mlx5e_tc_tun_encap *encap, struct mlx5e_route_key *key, u32 hash_key) mlx5e_route_get() argument
1182 struct mlx5e_tc_tun_encap *encap; mlx5e_route_get_create() local
1222 mlx5e_route_lookup_for_update(struct mlx5e_tc_tun_encap *encap, struct mlx5e_route_key *key) mlx5e_route_lookup_for_update() argument
1727 mlx5e_init_fib_work_ipv4(struct mlx5e_priv *priv, struct net_device *ul_dev, struct mlx5e_tc_tun_encap *encap, unsigned long event, struct fib_notifier_info *info) mlx5e_init_fib_work_ipv4() argument
1772 mlx5e_init_fib_work_ipv6(struct mlx5e_priv *priv, struct net_device *ul_dev, struct mlx5e_tc_tun_encap *encap, unsigned long event, struct fib_notifier_info *info) mlx5e_init_fib_work_ipv6() argument
1819 struct mlx5e_tc_tun_encap *encap; mlx5e_tc_tun_fib_event() local
1856 struct mlx5e_tc_tun_encap *encap; mlx5e_tc_tun_init() local
1877 mlx5e_tc_tun_cleanup(struct mlx5e_tc_tun_encap *encap) mlx5e_tc_tun_cleanup() argument
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Desp4.c138 struct xfrm_encap_tmpl *encap = x->encap; in esp_find_tcp_sk() local
149 sport = encap->encap_sport; in esp_find_tcp_sk()
150 dport = encap->encap_dport; in esp_find_tcp_sk()
178 if (encap->encap_sport != sport || in esp_find_tcp_sk()
179 encap->encap_dport != dport) { in esp_find_tcp_sk()
279 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
413 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_encap() local
777 struct xfrm_encap_tmpl *encap = x->encap; esp_input_done2() local
1170 struct xfrm_encap_tmpl *encap = x->encap; esp_init_state() local
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Desp6.c154 struct xfrm_encap_tmpl *encap = x->encap; in esp6_find_tcp_sk() local
165 sport = encap->encap_sport; in esp6_find_tcp_sk()
166 dport = encap->encap_dport; in esp6_find_tcp_sk()
194 if (encap->encap_sport != sport || in esp6_find_tcp_sk()
195 encap->encap_dport != dport) { in esp6_find_tcp_sk()
266 /* UDP encap with IPv6 requires a valid checksum */ in esp_output_encap_csum()
314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
448 struct xfrm_encap_tmpl *encap in esp6_output_encap() local
810 struct xfrm_encap_tmpl *encap = x->encap; esp6_input_done2() local
1221 struct xfrm_encap_tmpl *encap = x->encap; esp6_init_state() local
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Desp6.c153 struct xfrm_encap_tmpl *encap = x->encap; in esp6_find_tcp_sk() local
165 sport = encap->encap_sport; in esp6_find_tcp_sk()
166 dport = encap->encap_dport; in esp6_find_tcp_sk()
194 if (encap->encap_sport != sport || in esp6_find_tcp_sk()
195 encap->encap_dport != dport) { in esp6_find_tcp_sk()
266 /* UDP encap with IPv6 requires a valid checksum */ in esp_output_encap_csum()
314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
448 struct xfrm_encap_tmpl *encap in esp6_output_encap() local
804 struct xfrm_encap_tmpl *encap = x->encap; esp6_input_done2() local
1225 struct xfrm_encap_tmpl *encap = x->encap; esp6_init_state() local
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dip6_tunnel.h64 struct ip_tunnel_encap encap; member
114 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip6_tnl_encap()
117 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip6_tnl_encap()
121 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); in ip6_tnl_encap()
123 ret = ops->build_header(skb, &t->encap, protocol, fl6); in ip6_tnl_encap()
/kernel/linux/linux-6.6/include/net/
H A Dip6_tunnel.h65 struct ip_tunnel_encap encap; member
115 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip6_tnl_encap()
118 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip6_tnl_encap()
122 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); in ip6_tnl_encap()
124 ret = ops->build_header(skb, &t->encap, protocol, fl6); in ip6_tnl_encap()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dsrv6_hencap_red_l3vpn_test.sh425 encap seg6local action End dev "${VRF_DEVNAME}"
431 encap seg6local action End.DT46 vrftable "${VRF_TID}" \
458 # $5 - encap mode (full or red)
484 encap seg6 mode "${mode}" segs "${policy}" \
495 encap seg6 mode "${mode}" segs "${policy}" \
618 setup_rt_policy_ipv6 2 1 "3 4" 2 encap.red
619 setup_rt_policy_ipv6 1 2 "" 1 encap.red
631 setup_rt_policy_ipv4 2 1 "" 2 encap.red
632 setup_rt_policy_ipv4 1 2 "4 3" 1 encap.red
645 setup_rt_policy_ipv6 4 3 "2" 4 encap
[all...]
H A Dpmtu.sh401 encap="${3}"
430 run_cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap ${encap} encap-sport auto encap-dport 5556 || return $ksft_skip
433 run_cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${encap} encap
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnft_flow_offload.c86 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member
128 info->encap[info->num_encaps].id = path->encap.id; in nft_dev_path_info()
129 info->encap[info->num_encaps].proto = path->encap.proto; in nft_dev_path_info()
132 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info()
143 info->encap[info->num_encaps].id = path->bridge.vlan_id; in nft_dev_path_info()
144 info->encap[info->num_encaps].proto = path->bridge.vlan_proto; in nft_dev_path_info()
206 route->tuple[!dir].in.encap[i].id = info.encap[ in nft_dev_forward_path()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dpmtu.sh365 encap="${3}"
394 run_cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap ${encap} encap-sport auto encap-dport 5556 || return 2
397 run_cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${encap} encap
[all...]
/kernel/linux/linux-5.10/net/l2tp/
H A Dl2tp_core.c366 /* IP encap expects session IDs to be globally unique, while in l2tp_session_register()
367 * UDP encap doesn't. in l2tp_session_register()
371 (session_walk->tunnel->encap == L2TP_ENCAPTYPE_IP || in l2tp_session_register()
372 tunnel->encap == L2TP_ENCAPTYPE_IP)) { in l2tp_session_register()
964 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
1026 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(*uh) : 0; in l2tp_xmit_core()
1060 /* Report transmitted length before we add encap header, which keeps in l2tp_xmit_core()
1061 * statistics consistent for both UDP and IP encap tx/rx paths. in l2tp_xmit_core()
1066 switch (tunnel->encap) { in l2tp_xmit_core()
1139 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1395 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; l2tp_tunnel_create() local
1434 l2tp_validate_socket(const struct sock *sk, const struct net *net, enum l2tp_encap_type encap) l2tp_validate_socket() argument
[all...]
/kernel/linux/linux-6.6/net/l2tp/
H A Dl2tp_core.c366 /* IP encap expects session IDs to be globally unique, while in l2tp_session_register()
367 * UDP encap doesn't. in l2tp_session_register()
371 (session_walk->tunnel->encap == L2TP_ENCAPTYPE_IP || in l2tp_session_register()
372 tunnel->encap == L2TP_ENCAPTYPE_IP)) { in l2tp_session_register()
964 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
1026 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(*uh) : 0; in l2tp_xmit_core()
1060 /* Report transmitted length before we add encap header, which keeps in l2tp_xmit_core()
1061 * statistics consistent for both UDP and IP encap tx/rx paths. in l2tp_xmit_core()
1066 switch (tunnel->encap) { in l2tp_xmit_core()
1139 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1393 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; l2tp_tunnel_create() local
1432 l2tp_validate_socket(const struct sock *sk, const struct net *net, enum l2tp_encap_type encap) l2tp_validate_socket() argument
[all...]

Completed in 24 milliseconds

123456789