Home
last modified time | relevance | path

Searched refs:encap (Results 1 – 25 of 104) sorted by relevance

12345

/linux/tools/testing/selftests/bpf/progs/
A Dtest_cls_redirect.c381 sizeof(*encap) + in accept_locally()
405 sizeof(*encap) + in forward_with_gre()
536 memcpy(encap->eth.h_dest, encap->eth.h_source, in forward_to_next_hop()
538 memcpy(encap->eth.h_source, temp, sizeof(encap->eth.h_source)); in forward_to_next_hop()
540 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop()
547 encap->ip.saddr = encap->ip.daddr; in forward_to_next_hop()
549 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop()
586 if (encap->unigue.next_hop > encap->unigue.hop_count) { in get_next_hop()
593 if (encap->unigue.next_hop == encap->unigue.hop_count) { in get_next_hop()
963 encap = buf_assign(&pkt, sizeof(*encap), NULL); in cls_redirect()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_encap.c726 encap = uplink_priv->encap; in mlx5e_route_tbl_get_last_update()
1046 encap = uplink_priv->encap; in mlx5e_route_get_create()
1664 priv = encap->priv; in mlx5e_tc_tun_fib_event()
1699 encap = kvzalloc(sizeof(*encap), GFP_KERNEL); in mlx5e_tc_tun_init()
1700 if (!encap) in mlx5e_tc_tun_init()
1703 encap->priv = priv; in mlx5e_tc_tun_init()
1710 kvfree(encap); in mlx5e_tc_tun_init()
1714 return encap; in mlx5e_tc_tun_init()
1719 if (!encap) in mlx5e_tc_tun_cleanup()
1722 unregister_fib_notifier(dev_net(encap->priv->netdev), &encap->fib_nb); in mlx5e_tc_tun_cleanup()
[all …]
/linux/net/bridge/netfilter/
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()
143 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
/linux/net/ipv6/
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()
314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
448 struct xfrm_encap_tmpl *encap = x->encap; in esp6_output_encap() local
487 if (x->encap) { in esp6_output_head()
678 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail()
801 if (x->encap) { in esp6_input_done2()
804 struct xfrm_encap_tmpl *encap = x->encap; in esp6_input_done2() local
1215 if (x->encap) { in esp6_init_state()
[all …]
A Dip6_offload.c85 bool encap, udpfrag; in ipv6_gso_segment() local
94 encap = SKB_GSO_CB(skb)->encap_level > 0; in ipv6_gso_segment()
95 if (encap) in ipv6_gso_segment()
107 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
149 if (encap) in ipv6_gso_segment()
/linux/net/ipv4/
A Desp4.c136 struct xfrm_encap_tmpl *encap = x->encap; in esp_find_tcp_sk() local
147 sport = encap->encap_sport; in esp_find_tcp_sk()
148 dport = encap->encap_dport; in esp_find_tcp_sk()
277 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
411 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_encap() local
451 if (x->encap) { in esp_output_head()
641 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail()
768 if (x->encap) { in esp_input_done2()
769 struct xfrm_encap_tmpl *encap = x->encap; in esp_input_done2() local
1162 if (x->encap) { in esp_init_state()
[all …]
/linux/net/netfilter/
A Dnft_flow_offload.c73 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member
123 info->encap[info->num_encaps].id = path->encap.id; in nft_dev_path_info()
124 info->encap[info->num_encaps].proto = path->encap.proto; in nft_dev_path_info()
127 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info()
138 info->encap[info->num_encaps].id = path->bridge.vlan_id; in nft_dev_path_info()
139 info->encap[info->num_encaps].proto = path->bridge.vlan_proto; in nft_dev_path_info()
201 route->tuple[!dir].in.encap[i].id = info.encap[i].id; in nft_dev_forward_path()
202 route->tuple[!dir].in.encap[i].proto = info.encap[i].proto; in nft_dev_forward_path()
A Dnf_flow_table_offload.c117 tuple->encap[0].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
120 tuple->encap[0].id, in nf_flow_rule_match()
121 tuple->encap[0].proto); in nf_flow_rule_match()
126 tuple->encap[1].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
131 tuple->encap[1].id, in nf_flow_rule_match()
132 tuple->encap[1].proto); in nf_flow_rule_match()
137 tuple->encap[1].id, in nf_flow_rule_match()
138 tuple->encap[1].proto); in nf_flow_rule_match()
655 switch (other_tuple->encap[i].proto) { in nf_flow_rule_route_common()
658 entry->pppoe.sid = other_tuple->encap[i].id; in nf_flow_rule_route_common()
[all …]
/linux/tools/testing/selftests/net/
A Dpmtu.sh385 encap="${3}"
414 …cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap ${e…
417 …cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${e…
427 run_cmd ${ns_a} ip link set ${encap}_a up
428 run_cmd ${ns_b} ip link set ${encap}_b up
650 encap=${4}
1311 encap=${3}
1315 trace "${ns_a}" ${encap}_a "${ns_b}" ${encap}_b \
1327 if [ "${encap}" = "gue" ]; then
1789 encap="vxlan"
[all …]
A Dioam6.sh217 ip -netns ioam-tmp-node route add db02::/64 encap ioam6 mode inline \
491 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
511 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
537 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
576 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
606 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
626 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
652 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
681 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
705 ip -netns ioam-node-alpha route change db01::/64 encap ioam6 mode $mode \
[all …]
A Dsrv6_end_dt46_l3vpn_test.sh347 encap seg6 mode encap segs ${vpn_sid} dev veth0
349 encap seg6 mode encap segs ${vpn_sid} dev veth0
356 encap seg6local action End.DT46 vrftable ${tid} dev vrf-${tid}
/linux/include/net/
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()
A Dlwtunnel.h37 int (*build_state)(struct net *net, struct nlattr *encap,
120 struct nlattr *encap,
216 struct nlattr *encap, in lwtunnel_build_state() argument
A Dip_tunnels.h132 struct ip_tunnel_encap encap; member
361 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip_tunnel_encap()
364 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip_tunnel_encap()
368 ops = rcu_dereference(iptun_encaps[t->encap.type]); in ip_tunnel_encap()
370 ret = ops->build_header(skb, &t->encap, protocol, fl4); in ip_tunnel_encap()
/linux/net/l2tp/
A Dl2tp_core.c374 tunnel->encap == L2TP_ENCAPTYPE_IP)) { in l2tp_session_register()
966 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
1068 switch (tunnel->encap) { in l2tp_xmit_core()
1141 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1283 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1394 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; in l2tp_tunnel_create() local
1397 encap = cfg->encap; in l2tp_tunnel_create()
1414 tunnel->encap = encap; in l2tp_tunnel_create()
1434 enum l2tp_encap_type encap) in l2tp_validate_socket() argument
1499 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_tunnel_register()
[all …]
A Dtrace.h60 __field(enum l2tp_encap_type, encap)
68 __entry->encap = tunnel->encap;
73 show_encap_type_name(__entry->encap),
A Dl2tp_netlink.c218 cfg.encap = nla_get_u16(attrs[L2TP_ATTR_ENCAP_TYPE]); in l2tp_nl_cmd_tunnel_create()
233 switch (cfg.encap) { in l2tp_nl_cmd_tunnel_create()
318 enum l2tp_encap_type encap) in l2tp_nl_tunnel_send_addr6() argument
323 switch (encap) { in l2tp_nl_tunnel_send_addr6()
346 enum l2tp_encap_type encap) in l2tp_nl_tunnel_send_addr4() argument
350 switch (encap) { in l2tp_nl_tunnel_send_addr4()
379 return l2tp_nl_tunnel_send_addr6(skb, sk, tunnel->encap); in l2tp_nl_tunnel_send_addr()
381 return l2tp_nl_tunnel_send_addr4(skb, sk, tunnel->encap); in l2tp_nl_tunnel_send_addr()
398 nla_put_u16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap)) in l2tp_nl_tunnel_send()
/linux/net/xfrm/
A Dxfrm_state.c508 kfree(x->encap); in ___xfrm_state_destroy()
1550 if (encap || orig->encap) { in xfrm_state_clone()
1551 if (encap) in xfrm_state_clone()
1552 x->encap = kmemdup(encap, sizeof(*x->encap), in xfrm_state_clone()
1555 x->encap = kmemdup(orig->encap, sizeof(*x->encap), in xfrm_state_clone()
1558 if (!x->encap) in xfrm_state_clone()
1729 if (x->encap && x1->encap && in xfrm_state_update()
1730 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
1731 memcpy(x1->encap, x->encap, sizeof(*x1->encap)); in xfrm_state_update()
1732 else if (x->encap || x1->encap) in xfrm_state_update()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dcls_redirect.c249 static void encap_init(encap_headers_t *encap, uint8_t hop_count, uint8_t proto) in encap_init() argument
253 *encap = (encap_headers_t){ in encap_init()
279 encap_headers_t encap; in build_input() local
292 encap_init(&encap, test->hops == ONE_HOP ? 1 : 0, proto); in build_input()
293 p = mempcpy(p, &encap, sizeof(encap)); in build_input()
/linux/tools/testing/selftests/bpf/
A Dtest_lwt_ip_encap.sh367 ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \
369 ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \
372 ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \
374 ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \
425 ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \
427 ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \
430 ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \
432 ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \
A Dtest_lwt_seg6local.sh114 ip netns exec ns2 ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o sec encap_srh dev v…
118 ip netns exec ns3 ip -6 route add fd00::1 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
120 ip netns exec ns4 ip -6 route add fd00::2 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
125 ip netns exec ns5 ip -6 route add fd00::3 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
/linux/drivers/infiniband/core/
A Duverbs_std_types_flow_action.c221 struct ib_flow_spec_list encap; member
296 ret = flow_action_esp_get_encap(&esp_attr->encap, attrs); in parse_flow_action_esp()
300 esp_attr->hdr.encap = &esp_attr->encap; in parse_flow_action_esp()
/linux/net/core/
A Dlwtunnel.c109 struct nlattr *encap, unsigned int family, in lwtunnel_build_state() argument
119 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
132 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
139 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
/linux/tools/testing/selftests/net/forwarding/
A Dipip_lib.sh336 local encap=$1; shift
341 check_fail $? "ping $encap should not pass with size 1800"
348 log_test "ping $encap packet size 1800 after MTU change"
/linux/drivers/net/ethernet/sfc/
A Def100_tx.c196 bool encap = skb->encapsulation; in ef100_make_tso_desc() local
211 if (encap) { in ef100_make_tso_desc()
247 ESF_GZ_TX_TSO_ED_OUTER_IP_LEN, encap && !gso_partial, in ef100_make_tso_desc()
248 ESF_GZ_TX_TSO_ED_OUTER_IP4_ID, encap ? mangleid : in ef100_make_tso_desc()

Completed in 59 milliseconds

12345