Home
last modified time | relevance | path

Searched refs:encap_type (Results 1 – 25 of 26) sorted by relevance

12

/net/core/
A Dlwtunnel.c38 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 Dxfrm4_input.c89 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 Desp4_offload.c36 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 Desp4.c238 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 Dxfrm4_protocol.c62 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 Dip_vti.c48 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 Dudp_tunnel_core.c83 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
A Dfib_semantics.c614 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 Dudp.c948 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 Dfou_core.c600 tunnel_cfg.encap_type = 1; in fou_create()
/net/ipv6/
A Dxfrm6_input.c85 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 Desp6.c274 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 Desp6_offload.c59 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 Dxfrm6_protocol.c63 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 Dip6_vti.c295 int encap_type) in vti6_input_proto() argument
325 return xfrm_input(skb, nexthdr, spi, encap_type); in vti6_input_proto()
A Dudp.c720 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 Dxfrm_input.c463 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 Dxfrm_interface_core.c313 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 Dxfrm_state.c2224 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 Dxfrm_user.c1303 uep->encap_type = ep->encap_type; in copy_to_user_encap()
/net/rxrpc/
A Dlocal_object.c193 tuncfg.encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
/net/l2tp/
A Dl2tp_core.c154 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 Dprotocol.c895 tuncfg.encap_type = 1; in sctp_udp_sock_start()
917 tuncfg.encap_type = 1; in sctp_udp_sock_start()
/net/tipc/
A Dudp_media.c774 tuncfg.encap_type = 1; in tipc_udp_enable()
/net/key/
A Daf_key.c819 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()

Completed in 66 milliseconds

12