/kernel/linux/linux-5.10/net/core/ |
H A D | lwtunnel.c | 28 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 33 switch (encap_type) { in lwtunnel_encap_str() 85 unsigned int encap_type) in lwtunnel_encap_del_ops() 89 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 90 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 94 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 103 int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 112 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 113 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 121 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 84 lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, unsigned int encap_type) lwtunnel_encap_del_ops() argument 142 lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack) lwtunnel_valid_encap_type() argument 185 u16 encap_type; lwtunnel_valid_encap_type_attr() local [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | lwtunnel.c | 31 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 36 switch (encap_type) { in lwtunnel_encap_str() 93 unsigned int encap_type) in lwtunnel_encap_del_ops() 97 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 98 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 102 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 111 int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 120 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 121 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 129 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 92 lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, unsigned int encap_type) lwtunnel_encap_del_ops() argument 150 lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack) lwtunnel_valid_encap_type() argument 193 u16 encap_type; lwtunnel_valid_encap_type_attr() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | xfrm4_input.c | 90 u16 encap_type; in xfrm4_udp_encap_rcv() local 92 encap_type = READ_ONCE(up->encap_type); in xfrm4_udp_encap_rcv() 94 if (!encap_type) in xfrm4_udp_encap_rcv() 108 switch (encap_type) { in xfrm4_udp_encap_rcv() 161 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
|
H A D | esp4.c | 278 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 344 int encap_type, in esp_output_udp_encap() 365 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp_output_udp_encap() 415 int encap_type; in esp_output_encap() local 420 encap_type = encap->encap_type; in esp_output_encap() 423 switch (encap_type) { in esp_output_encap() 427 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap() 644 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail() 773 switch (x->encap->encap_type) { in esp_input_done2() 343 esp_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) esp_output_udp_encap() argument [all...] |
H A D | udp_tunnel_core.c | 73 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
H A D | xfrm4_protocol.c | 62 int encap_type) in xfrm4_rcv_encap() 84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap() 61 xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) xfrm4_rcv_encap() argument
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | xfrm4_input.c | 91 __u16 encap_type = up->encap_type; in xfrm4_udp_encap_rcv() local 94 if (!encap_type) in xfrm4_udp_encap_rcv() 108 switch (encap_type) { in xfrm4_udp_encap_rcv() 161 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
|
H A D | esp4.c | 279 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 345 int encap_type, in esp_output_udp_encap() 366 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp_output_udp_encap() 416 int encap_type; in esp_output_encap() local 421 encap_type = encap->encap_type; in esp_output_encap() 424 switch (encap_type) { in esp_output_encap() 428 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap() 647 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail() 782 switch (x->encap->encap_type) { in esp_input_done2() 344 esp_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) esp_output_udp_encap() argument [all...] |
H A D | xfrm4_protocol.c | 62 int encap_type) in xfrm4_rcv_encap() 84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap() 61 xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) xfrm4_rcv_encap() argument
|
H A D | ip_vti.c | 48 int encap_type, bool update_skb_dev) in vti_input() 66 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input() 76 int encap_type) in vti_input_proto() 78 return vti_input(skb, nexthdr, spi, encap_type, false); in vti_input_proto() 47 vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type, bool update_skb_dev) vti_input() argument 75 vti_input_proto(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) vti_input_proto() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | filter.h | 142 * @encap_type: Encapsulation type to match (from &enum efx_encap_type), if 171 u32 encap_type:4; member 297 enum efx_encap_type encap_type) in efx_filter_set_encap_type() 300 spec->encap_type = encap_type; in efx_filter_set_encap_type() 307 return spec->encap_type; in efx_filter_get_encap_type() 296 efx_filter_set_encap_type(struct efx_filter_spec *spec, enum efx_encap_type encap_type) efx_filter_set_encap_type() argument
|
H A D | mcdi_filters.c | 97 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_push_prep_set_match_fields() local 129 if (encap_type) { in efx_mcdi_filter_push_prep_set_match_fields() 135 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_mcdi_filter_push_prep_set_match_fields() 140 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_mcdi_filter_push_prep_set_match_fields() 267 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_mcdi_flags_from_spec() local 284 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 285 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 286 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 287 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 288 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 820 efx_mcdi_filter_insert_def(struct efx_nic *efx, struct efx_mcdi_filter_vlan *vlan, enum efx_encap_type encap_type, bool multicast, bool rollback) efx_mcdi_filter_insert_def() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
H A D | filter.h | 141 * @encap_type: Encapsulation type to match (from &enum efx_encap_type), if 170 u32 encap_type:4; member 329 enum efx_encap_type encap_type) in efx_filter_set_encap_type() 332 spec->encap_type = encap_type; in efx_filter_set_encap_type() 339 return spec->encap_type; in efx_filter_get_encap_type() 328 efx_filter_set_encap_type(struct efx_filter_spec *spec, enum efx_encap_type encap_type) efx_filter_set_encap_type() argument
|
H A D | mcdi_filters.c | 97 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_push_prep_set_match_fields() local 129 if (encap_type) { in efx_mcdi_filter_push_prep_set_match_fields() 135 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_mcdi_filter_push_prep_set_match_fields() 140 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_mcdi_filter_push_prep_set_match_fields() 270 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_mcdi_flags_from_spec() local 287 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 288 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 289 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 290 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 291 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 824 efx_mcdi_filter_insert_def(struct efx_nic *efx, struct efx_mcdi_filter_vlan *vlan, enum efx_encap_type encap_type, bool multicast, bool rollback) efx_mcdi_filter_insert_def() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
H A D | filter.h | 142 * @encap_type: Encapsulation type to match (from &enum efx_encap_type), if 170 u32 encap_type:4; member 296 enum efx_encap_type encap_type) in efx_filter_set_encap_type() 299 spec->encap_type = encap_type; in efx_filter_set_encap_type() 306 return spec->encap_type; in efx_filter_get_encap_type() 295 efx_filter_set_encap_type(struct efx_filter_spec *spec, enum efx_encap_type encap_type) efx_filter_set_encap_type() argument
|
/kernel/linux/linux-5.10/include/net/ |
H A D | lwtunnel.h | 115 int lwtunnel_valid_encap_type(u16 encap_type, 119 int lwtunnel_build_state(struct net *net, u16 encap_type, 200 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument 215 static inline int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 264 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type))
|
/kernel/linux/linux-6.6/include/net/ |
H A D | lwtunnel.h | 118 int lwtunnel_valid_encap_type(u16 encap_type, 122 int lwtunnel_build_state(struct net *net, u16 encap_type, 203 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument 218 static inline int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 267 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type))
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | xfrm6_input.c | 86 u16 encap_type; in xfrm6_udp_encap_rcv() local 91 encap_type = READ_ONCE(up->encap_type); in xfrm6_udp_encap_rcv() 93 if (!encap_type) in xfrm6_udp_encap_rcv() 107 switch (encap_type) { in xfrm6_udp_encap_rcv() 159 return xfrm6_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm6_udp_encap_rcv()
|
H A D | esp6.c | 314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 380 int encap_type, in esp6_output_udp_encap() 401 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp6_output_udp_encap() 451 int encap_type; in esp6_output_encap() local 456 encap_type = encap->encap_type; in esp6_output_encap() 459 switch (encap_type) { in esp6_output_encap() 463 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 682 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 820 switch (x->encap->encap_type) { in esp6_input_done2() 379 esp6_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) esp6_output_udp_encap() argument [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | xfrm6_input.c | 87 __u16 encap_type = up->encap_type; in xfrm6_udp_encap_rcv() local 93 if (!encap_type) in xfrm6_udp_encap_rcv() 107 switch (encap_type) { in xfrm6_udp_encap_rcv() 159 return xfrm6_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm6_udp_encap_rcv()
|
H A D | esp6.c | 314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 380 int encap_type, in esp6_output_udp_encap() 401 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp6_output_udp_encap() 451 int encap_type; in esp6_output_encap() local 456 encap_type = encap->encap_type; in esp6_output_encap() 459 switch (encap_type) { in esp6_output_encap() 463 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 682 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 826 switch (x->encap->encap_type) { in esp6_input_done2() 379 esp6_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) esp6_output_udp_encap() argument [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_input.c | 459 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 478 if (encap_type < 0) { in xfrm_input() 488 if (encap_type == -1) in xfrm_input() 495 /* An encap_type of -1 indicates async resumption. */ in xfrm_input() 496 if (encap_type == -1) { in xfrm_input() 502 /* encap_type < -1 indicates a GRO call. */ in xfrm_input() 503 encap_type = 0; in xfrm_input() 610 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 661 encap_type in xfrm_input() [all...] |
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_input.c | 447 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 465 if (encap_type < 0) { in xfrm_input() 475 if (encap_type == -1) in xfrm_input() 482 /* An encap_type of -1 indicates async resumption. */ in xfrm_input() 483 if (encap_type == -1) { in xfrm_input() 489 /* encap_type < -1 indicates a GRO call. */ in xfrm_input() 490 encap_type = 0; in xfrm_input() 597 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 648 encap_type in xfrm_input() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A D | hal_tx.h | 23 enum hal_tcl_encap_type encap_type; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/ |
H A D | hal_tx.h | 24 enum hal_tcl_encap_type encap_type; member
|