| /net/core/ |
| A D | lwtunnel.c | 38 switch (encap_type) { in lwtunnel_encap_str() 95 unsigned int encap_type) in lwtunnel_encap_del_ops() argument 99 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 100 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 104 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 122 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 123 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 157 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_valid_encap_type() 158 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_valid_encap_type() 188 u16 encap_type; in lwtunnel_valid_encap_type_attr() local [all …]
|
| /net/ipv4/ |
| A D | xfrm4_input.c | 89 u16 encap_type; in __xfrm4_udp_encap_rcv() local 91 encap_type = READ_ONCE(up->encap_type); in __xfrm4_udp_encap_rcv() 93 if (!encap_type) in __xfrm4_udp_encap_rcv() 107 switch (encap_type) { in __xfrm4_udp_encap_rcv() 168 udp_sk(sk)->encap_type); in xfrm4_udp_encap_rcv()
|
| A D | esp4_offload.c | 36 int encap_type = 0; in esp4_gro_receive() local 82 encap_type = UDP_ENCAP_ESPINUDP; in esp4_gro_receive() 91 xfrm_input(skb, IPPROTO_ESP, spi, encap_type); in esp4_gro_receive() 274 int encap_type = 0; in esp_xmit() local 308 encap_type = x->encap->encap_type; in esp_xmit() 310 if (!hw_offload || !skb_is_gso(skb) || (hw_offload && encap_type == UDP_ENCAP_ESPINUDP)) { in esp_xmit() 337 if (hw_offload && encap_type == UDP_ENCAP_ESPINUDP) { in esp_xmit()
|
| A D | esp4.c | 238 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 304 int encap_type, in esp_output_udp_encap() argument 327 if (!xo || encap_type != UDP_ENCAP_ESPINUDP) in esp_output_udp_encap() 376 int encap_type; in esp_output_encap() local 381 encap_type = encap->encap_type; in esp_output_encap() 384 switch (encap_type) { in esp_output_encap() 387 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap() 604 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail() 733 switch (x->encap->encap_type) { in esp_input_done2() 1134 switch (encap->encap_type) { in esp_init_state()
|
| A D | xfrm4_protocol.c | 62 int encap_type) in xfrm4_rcv_encap() argument 84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
| A D | ip_vti.c | 48 int encap_type, bool update_skb_dev) in vti_input() argument 69 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input() 79 int encap_type) in vti_input_proto() argument 81 return vti_input(skb, nexthdr, spi, encap_type, false); in vti_input_proto()
|
| A D | udp_tunnel_core.c | 83 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
| A D | fib_semantics.c | 614 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument 628 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init() 879 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument 888 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match() 891 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
|
| A D | udp.c | 948 if (!sk || READ_ONCE(udp_sk(sk)->encap_type)) { in __udp4_lib_err() 2364 READ_ONCE(up->encap_type)) { in udp_queue_rcv_one_skb() 2894 if (up->encap_type) { in udp_destroy_sock() 2911 static void set_xfrm_gro_udp_encap_rcv(__u16 encap_type, unsigned short family, 2917 if (udp_test_bit(GRO_ENABLED, sk) && encap_type == UDP_ENCAP_ESPINUDP) { 3000 WRITE_ONCE(up->encap_type, val); 3031 set_xfrm_gro_udp_encap_rcv(up->encap_type, sk->sk_family, sk); 3104 val = READ_ONCE(up->encap_type); in udp_lib_getsockopt()
|
| A D | fou_core.c | 600 tunnel_cfg.encap_type = 1; in fou_create()
|
| /net/ipv6/ |
| A D | xfrm6_input.c | 85 u16 encap_type; in __xfrm6_udp_encap_rcv() local 87 encap_type = READ_ONCE(up->encap_type); in __xfrm6_udp_encap_rcv() 89 if (!encap_type) in __xfrm6_udp_encap_rcv() 103 switch (encap_type) { in __xfrm6_udp_encap_rcv() 166 udp_sk(sk)->encap_type); in xfrm6_udp_encap_rcv()
|
| A D | esp6.c | 274 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 340 int encap_type, in esp6_output_udp_encap() argument 406 int encap_type; in esp6_output_encap() local 411 encap_type = encap->encap_type; in esp6_output_encap() 414 switch (encap_type) { in esp6_output_encap() 417 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 636 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 774 switch (x->encap->encap_type) { in esp6_input_done2() 1181 switch (encap->encap_type) { in esp6_init_state()
|
| A D | esp6_offload.c | 59 int encap_type = 0; in esp6_gro_receive() local 65 encap_type = UDP_ENCAP_ESPINUDP; in esp6_gro_receive() 120 xfrm_input(skb, IPPROTO_ESP, spi, encap_type); in esp6_gro_receive()
|
| A D | xfrm6_protocol.c | 63 int encap_type) in xfrm6_rcv_encap() argument 97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap()
|
| A D | ip6_vti.c | 295 int encap_type) in vti6_input_proto() argument 325 return xfrm_input(skb, nexthdr, spi, encap_type); in vti6_input_proto()
|
| A D | udp.c | 720 if (!sk || READ_ONCE(udp_sk(sk)->encap_type)) { in __udp6_lib_err() 839 READ_ONCE(up->encap_type)) { in udpv6_queue_rcv_one_skb() 1819 if (up->encap_type) { in udpv6_destroy_sock()
|
| /net/xfrm/ |
| A D | xfrm_input.c | 463 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 481 if (encap_type < 0 || (xo && (xo->flags & XFRM_GRO || encap_type == 0 || in xfrm_input() 482 encap_type == UDP_ENCAP_ESPINUDP))) { in xfrm_input() 492 if (encap_type == -1) in xfrm_input() 500 if (encap_type == -2) in xfrm_input() 504 if (encap_type == -1) { in xfrm_input() 626 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 677 encap_type = 0; in xfrm_input()
|
| A D | xfrm_interface_core.c | 313 int encap_type, unsigned short family) in xfrmi_input() argument 331 return xfrm_input(skb, nexthdr, spi, encap_type); in xfrmi_input() 348 static int xfrmi4_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi4_input() argument 350 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET); in xfrmi4_input() 353 static int xfrmi6_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi6_input() argument 355 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET6); in xfrmi6_input()
|
| A D | xfrm_state.c | 2224 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update() 3207 if (!x->encap || x->encap->encap_type != UDP_ENCAP_ESPINUDP) { in __xfrm_init_state()
|
| A D | xfrm_user.c | 1303 uep->encap_type = ep->encap_type; in copy_to_user_encap()
|
| /net/rxrpc/ |
| A D | local_object.c | 193 tuncfg.encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
|
| /net/l2tp/ |
| A D | l2tp_core.c | 154 WRITE_ONCE(udp_sk(sk)->encap_type, 0); in l2tp_tunnel_free() 1673 .encap_type = UDP_ENCAP_L2TPINUDP, in l2tp_tunnel_register()
|
| /net/sctp/ |
| A D | protocol.c | 895 tuncfg.encap_type = 1; in sctp_udp_sock_start() 917 tuncfg.encap_type = 1; in sctp_udp_sock_start()
|
| /net/tipc/ |
| A D | udp_media.c | 774 tuncfg.encap_type = 1; in tipc_udp_enable()
|
| /net/key/ |
| A D | af_key.c | 819 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 998 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 1006 n_type->sadb_x_nat_t_type_type = natt->encap_type; in __pfkey_xfrm_state2msg() 1272 natt->encap_type = n_type->sadb_x_nat_t_type_type; in pfkey_msg2xfrm_state()
|