/linux-master/net/xfrm/ |
H A D | xfrm_policy.c | 4605 struct xfrm_encap_tmpl *encap, u32 if_id, 4639 xc = xfrm_state_migrate(x, mp, encap); 4662 km_migrate(sel, dir, type, m, num_migrate, k, encap); 4597 xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap, u32 if_id, struct netlink_ext_ack *extack) argument
|
H A D | xfrm_input.c | 615 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { 665 /* only the first xfrm gets the encap type */
|
H A D | xfrm_device.c | 70 switch (x->outer_mode.encap) { 265 if ((!is_packet_offload && x->encap) || x->tfcpad) { 417 (x->xso.type == XFRM_DEV_OFFLOAD_UNSPECIFIED && x->encap))
|
/linux-master/include/net/ |
H A D | xfrm.h | 45 #define MODULE_ALIAS_XFRM_MODE(family, encap) \ 46 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap)) 158 u8 encap; member in struct:xfrm_mode 229 struct xfrm_encap_tmpl *encap; member in struct:xfrm_state 439 void (*encap)(struct xfrm_state *, struct sk_buff *pskb); 607 const struct xfrm_encap_tmpl *encap); 1771 const struct xfrm_encap_tmpl *encap); 1776 struct xfrm_encap_tmpl *encap); 1780 struct xfrm_encap_tmpl *encap, u32 if_id, 438 void (*encap)(struct xfrm_state *, struct sk_buff *pskb); member in struct:xfrm_type_offload
|
H A D | ip_tunnels.h | 104 struct ip_tunnel_encap encap; 173 struct ip_tunnel_encap encap; 414 struct ip_tunnel_encap *encap); 86 struct ip_tunnel_encap encap; member in struct:ip_tunnel_info 144 struct ip_tunnel_encap encap; member in struct:ip_tunnel
|
/linux-master/net/l2tp/ |
H A D | l2tp_eth.c | 205 /* if the encap is UDP, account for UDP header size */ 206 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) {
|
/linux-master/net/ipv6/ |
H A D | udp.c | 483 const struct ip6_tnl_encap_ops *encap; 485 encap = rcu_dereference(ip6tun_encaps[i]); 486 if (!encap) 488 handler = encap->err_handler; 712 * =0 if skb was successfully passed to the encap 723 /* Verify checksum before giving to encap */ 470 const struct ip6_tnl_encap_ops *encap; local
|
H A D | ip6_offload.c | 118 bool encap, udpfrag; local 130 encap = SKB_GSO_CB(skb)->encap_level > 0; 131 if (encap) 143 udpfrag = proto == IPPROTO_UDP && encap && 187 if (encap)
|
H A D | ip6_gre.c | 1483 nt->encap.type != TUNNEL_ENCAP_NONE) 2184 t->encap.type) || 2186 t->encap.sport) || 2188 t->encap.dport) || 2190 t->encap.flags))
|
H A D | esp6.c | 154 struct xfrm_encap_tmpl *encap = x->encap; 166 sport = encap->encap_sport; 167 dport = encap->encap_dport; 195 if (encap->encap_sport != sport || 196 encap->encap_dport != dport) { 267 /* UDP encap with IPv6 requires a valid checksum */ 315 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) 442 struct xfrm_encap_tmpl *encap 153 struct xfrm_encap_tmpl *encap = x->encap; local 448 struct xfrm_encap_tmpl *encap = x->encap; local 804 struct xfrm_encap_tmpl *encap = x->encap; local 1225 struct xfrm_encap_tmpl *encap = x->encap; local [all...] |
/linux-master/net/ipv4/ |
H A D | udp.c | 625 const struct ip_tunnel_encap_ops *encap; 627 encap = rcu_dereference(iptun_encaps[i]); 628 if (!encap) 630 handler = encap->err_handler; 2087 * >0: "udp encap" protocol resubmission 2116 * =0 if skb was successfully passed to the encap 2127 /* Verify checksum before giving to encap */ 614 const struct ip_tunnel_encap_ops *encap; local
|
H A D | af_inet.c | 1372 bool udpfrag = false, fixedid = false, gso_partial, encap; 1400 encap = SKB_GSO_CB(skb)->encap_level > 0; 1401 if (encap) 1409 if (!skb->encapsulation || encap) { 1458 if (encap) 1371 bool udpfrag = false, fixedid = false, gso_partial, encap; local
|
H A D | ip_gre.c | 800 tunnel->encap.type != TUNNEL_ENCAP_NONE)) { 1008 tunnel->encap.type != TUNNEL_ENCAP_NONE) 1554 t->encap.type) || 1556 t->encap.sport) || 1558 t->encap.dport) || 1560 t->encap.flags))
|
H A D | esp4.c | 137 struct xfrm_encap_tmpl *encap = x->encap; 149 sport = encap->encap_sport; 150 dport = encap->encap_dport; 178 if (encap->encap_sport != sport || 179 encap->encap_dport != dport) { 279 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) 406 struct xfrm_encap_tmpl *encap = x->encap; 136 struct xfrm_encap_tmpl *encap = x->encap; local 412 struct xfrm_encap_tmpl *encap = x->encap; local 768 struct xfrm_encap_tmpl *encap = x->encap; local 1172 struct xfrm_encap_tmpl *encap = x->encap; local [all...] |
/linux-master/net/core/ |
H A D | filter.c | 2075 * for encap/decap of packet headers when BPF_F_ADJ_ROOM_NO_CSUM_RESET 3452 bool encap = flags & BPF_F_ADJ_ROOM_ENCAP_L3_MASK; 3468 if (encap) { 3499 if (encap) { 3450 bool encap = flags & BPF_F_ADJ_ROOM_ENCAP_L3_MASK; local
|
/linux-master/net/mac80211/ |
H A D | tx.c | 685 bool encap = info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP; local 755 encap ? ((struct ethhdr *)hdr)->h_dest : hdr->addr1,
|
/linux-master/net/netfilter/ |
H A D | nf_flow_table_ip.c | 149 tuple->encap[i].id = skb_vlan_tag_get(skb); 150 tuple->encap[i].proto = skb->vlan_proto; 156 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); 157 tuple->encap[i].proto = skb->protocol; 161 tuple->encap[i].id = ntohs(phdr->sid); 162 tuple->encap[i].proto = skb->protocol;
|
/linux-master/include/net/netfilter/ |
H A D | nf_flow_table.h | 131 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member in struct:flow_offload_tuple 207 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member in struct:nf_flow_route::__anon65::__anon66
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads.c | 1533 esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) { 1551 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) 1868 /* create the slow path fdb with encap set, so further table instances 1871 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) 3919 esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) { 3942 enum devlink_eswitch_encap_mode encap, 3955 if (encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE && 3962 if (encap && encap != DEVLINK_ESWITCH_ENCAP_MODE_BASIC) { 3968 esw->offloads.encap 3930 mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, enum devlink_eswitch_encap_mode encap, struct netlink_ext_ack *extack) argument 4002 mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, enum devlink_eswitch_encap_mode *encap) argument [all...] |
H A D | eswitch.c | 1894 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_BASIC; 1896 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_NONE; 2208 return (mlx5_eswitch_mode(dev) == MLX5_ESWITCH_OFFLOADS) ? esw->offloads.encap :
|
/linux-master/include/linux/ |
H A D | netdevice.h | 843 } encap; member in union:net_device_path::__anon412
|
/linux-master/include/rdma/ |
H A D | ib_verbs.h | 2137 struct ib_flow_spec_list *encap; member in struct:ib_flow_action_attrs_esp
|
/linux-master/tools/testing/selftests/net/ |
H A D | fib_tests.sh | 674 nexthop encap ip6 dst 2002::20 via 2001:20::2 dev dummy_20 \ 675 nexthop encap ip6 dst 2002::30 via 2001:30::2 dev dummy_30 \ 676 nexthop encap ip6 dst 2002::40 via 2001:40::2 dev dummy_40 \ 677 nexthop encap ip6 dst 2002::50 via 2001:50::2 dev dummy_50 \ 678 nexthop encap ip6 dst 2002::60 via 2001:60::2 dev dummy_60 \ 679 nexthop encap ip6 dst 2002::70 via 2001:70::2 dev dummy_70 721 nexthop encap ip dst 192.168.10.20 via 20.20.20.1 dev dummy_20 \ 722 nexthop encap ip dst 192.168.10.30 via 20.20.30.1 dev dummy_30 \ 723 nexthop encap ip dst 192.168.10.40 via 20.20.40.1 dev dummy_40 \ 724 nexthop encap i [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 381 static INLINING ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) argument 384 sizeof(*encap) + 385 sizeof(struct in_addr) * encap->unigue.hop_count; 389 if (encap->gue.proto_ctype == IPPROTO_IPV6) { 390 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); 402 static INLINING ret_t forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, argument 408 sizeof(*encap) + 409 sizeof(struct in_addr) * encap->unigue.hop_count; 422 if (encap->gue.proto_ctype == IPPROTO_IPV6) { 529 static INLINING ret_t forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, argument 586 get_next_hop(buf_t *pkt, encap_headers_t *encap, struct in_addr *next_hop) argument 951 encap_headers_t *encap; local [all...] |
H A D | test_cls_redirect_dynptr.c | 273 static ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) argument 276 sizeof(*encap) + 277 sizeof(struct in_addr) * encap->unigue.hop_count; 281 if (encap->gue.proto_ctype == IPPROTO_IPV6) 282 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); 294 encap_headers_t *encap, struct in_addr *next_hop, 298 sizeof(*encap) + 299 sizeof(struct in_addr) * encap->unigue.hop_count; 316 if (encap->gue.proto_ctype == IPPROTO_IPV6) { 421 encap_headers_t *encap, struc 293 forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) argument 420 forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) argument 477 get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap, struct in_addr *next_hop) argument [all...] |