/linux-master/drivers/net/ethernet/sfc/ |
H A D | tc.h | 57 * @encap_md: encap entry in tc_encap_ht table 58 * @encap_user: linked list of encap users (encap_md->users) 93 /* L2 (inner when encap) */ 133 * These are used to classify "pseudo" encap matches, which don't refer 139 * @EFX_TC_EM_PSEUDO_MASK: registered by an encap match which includes a 141 * to prevent an overlapping encap match _without_ optional fields. 142 * The pseudo encap match may be referenced again by an encap match 147 * Only one reference to this encap match may exist. 167 u32 fw_id; /* index of this entry in firmware encap matc 182 struct efx_tc_encap_match *encap; member in struct:efx_tc_match [all...] |
H A D | mcdi_filters.c | 126 * Handle encap filters first. They will always be mismatch 275 #define MAP_FILTER_TO_MCDI_FLAG(gen_flag, mcdi_field, encap) { \ 280 (1 << ((encap) ? \ 286 /* inner or outer based on encap type */ 300 /* special handling for encap type, and mismatch */ 850 * don't insert encap filters on non-supporting 889 /* mapping from encap types to default filter IDs (multicast) */ 943 /* mapping from encap types to default filter IDs (unicast) */ 1176 static int efx_mcdi_filter_match_flags_from_mcdi(bool encap, u32 mcdi_flags) argument 1188 if (encap) { 1233 efx_mcdi_filter_match_supported(struct efx_mcdi_filter_table *table, bool encap, enum efx_filter_match_flags match_flags) argument 1253 efx_mcdi_filter_table_probe_matches(struct efx_nic *efx, struct efx_mcdi_filter_table *table, bool encap) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.h | 98 u8 encap : 1; member in struct:mlx5_accel_esp_xfrm_attrs
|
H A D | ipsec_fs.c | 1215 static void setup_fte_spi(struct mlx5_flow_spec *spec, u32 spi, bool encap) argument 1220 if (encap) { 1475 if (attrs->encap) 1480 if (attrs->encap) 1485 if (attrs->encap) 1514 if (attrs->encap) 1522 if (attrs->encap) { 1608 setup_fte_spi(spec, attrs->spi, attrs->encap); 1609 if (!attrs->encap)
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 110 netdev_info(bp->dev, "only IPv4 tunnel-encap is supported\n"); 890 struct hwrm_cfa_encap_data_vxlan *encap; local 898 encap = (struct hwrm_cfa_encap_data_vxlan *)&req->encap_data; 900 ether_addr_copy(encap->dst_mac_addr, l2_info->dmac); 901 ether_addr_copy(encap->src_mac_addr, l2_info->smac); 903 encap->num_vlan_tags = l2_info->num_vlans; 904 encap->ovlan_tci = l2_info->inner_vlan_tci; 905 encap->ovlan_tpid = l2_info->inner_vlan_tpid; 908 encap_ipv4 = (struct hwrm_vxlan_ipv4_hdr *)encap->l3; 917 encap [all...] |
/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 3941 mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, enum devlink_eswitch_encap_mode encap, struct netlink_ext_ack *extack) argument 4013 mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, enum devlink_eswitch_encap_mode *encap) argument [all...] |
H A D | eswitch.h | 299 enum devlink_eswitch_encap_mode encap; member in struct:mlx5_esw_offload 548 enum devlink_eswitch_encap_mode encap, 551 enum devlink_eswitch_encap_mode *encap);
|
/linux-master/net/ipv4/ |
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 | af_inet.c | 1372 bool udpfrag = false, fixedid = false, gso_partial, encap; local 1400 encap = SKB_GSO_CB(skb)->encap_level > 0; 1401 if (encap) 1409 if (!skb->encapsulation || encap) { 1458 if (encap)
|
H A D | ipmr.c | 583 struct iphdr *encap; local 586 encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); 592 if (!ipv4_is_multicast(encap->daddr) || 593 encap->tot_len == 0 || 594 ntohs(encap->tot_len) + pimlen > skb->len) 605 skb_pull(skb, (u8 *)encap - skb->data); 1848 int encap = 0; local 1874 encap = sizeof(struct iphdr); 1886 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) { 1896 encap [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | bareudp.sh | 268 ip -netns "${NS0}" route add 2001:db8::203/128 src 2001:db8::200 encap mpls 203 via 2001:db8::11 269 ip -netns "${NS3}" route add 2001:db8::200/128 src 2001:db8::203 encap mpls 200 via 2001:db8::32
|
/linux-master/net/xfrm/ |
H A D | xfrm_ipcomp.c | 338 if (x->encap) {
|
H A D | xfrm_output.c | 548 x->type_offload->encap(x, skb); 652 * plain text packet. Otherwise If the encap type is IPIP, just save 664 if (x->outer_mode.encap == XFRM_MODE_TUNNEL) { 814 if (x->outer_mode.encap == XFRM_MODE_BEET &&
|
/linux-master/net/ipv6/ |
H A D | xfrm6_tunnel.c | 280 if (x->encap) {
|
H A D | sit.c | 1028 if (ip_tunnel_encap(skb, &tunnel->encap, &protocol, &fl4) < 0) { 1721 tunnel->encap.type) || 1723 tunnel->encap.sport) || 1725 tunnel->encap.dport) || 1727 tunnel->encap.flags))
|
H A D | ip6mr.c | 530 struct ipv6hdr *encap; local 540 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) 553 encap = (struct ipv6hdr *)(skb_transport_header(skb) + 556 if (!ipv6_addr_is_multicast(&encap->daddr) || 557 encap->payload_len == 0 || 558 ntohs(encap->payload_len) + sizeof(*pim) > skb->len) 573 skb_pull(skb, (u8 *)encap - skb->data);
|
/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) {
|
H A D | l2tp_ppp.c | 287 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; 362 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; 671 .encap = L2TP_ENCAPTYPE_UDP,
|
/linux-master/drivers/net/hyperv/ |
H A D | hyperv_net.h | 1442 u32 encap; member in struct:ndis_lsov1_offload 1449 u32 encap; member in struct:ndis_ipsecv1_offload 1474 u32 encap; member in struct:ndis_ipsecv2_offload
|
/linux-master/drivers/net/ppp/ |
H A D | pppoe.c | 988 path->encap.proto = htons(ETH_P_PPP_SES); 989 path->encap.id = be16_to_cpu(po->num); 990 memcpy(path->encap.h_dest, po->pppoe_pa.remote, ETH_ALEN);
|
/linux-master/net/sctp/ |
H A D | socket.c | 4447 struct sctp_udpencaps *encap, 4454 if (optlen != sizeof(*encap)) 4460 encap_port = (__force __be16)encap->sue_port; 4461 if (!sctp_is_any(sk, (union sctp_addr *)&encap->sue_address)) { 4462 t = sctp_addr_id2transport(sk, &encap->sue_address, 4463 encap->sue_assoc_id); 4475 asoc = sctp_id2assoc(sk, encap->sue_assoc_id); 4476 if (!asoc && encap->sue_assoc_id != SCTP_FUTURE_ASSOC && 7944 struct sctp_udpencaps encap; local 7948 if (len < sizeof(encap)) 4446 sctp_setsockopt_encap_port(struct sock *sk, struct sctp_udpencaps *encap, unsigned int optlen) argument [all...] |
/linux-master/net/key/ |
H A D | af_key.c | 816 if (x->encap) 817 natt = x->encap; 1264 x->encap = kzalloc(sizeof(*x->encap), GFP_KERNEL); 1265 if (!x->encap) { 1270 natt = x->encap; 3372 if (!x->encap) 3375 natt = x->encap; 3551 const struct xfrm_encap_tmpl *encap) 3662 const struct xfrm_encap_tmpl *encap) 3548 pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, const struct xfrm_migrate *m, int num_bundles, const struct xfrm_kmaddress *k, const struct xfrm_encap_tmpl *encap) argument 3659 pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, const struct xfrm_migrate *m, int num_bundles, const struct xfrm_kmaddress *k, const struct xfrm_encap_tmpl *encap) argument [all...] |
/linux-master/net/sched/ |
H A D | cls_flower.c | 1184 static void fl_set_key_ip(struct nlattr **tb, bool encap, argument 1188 int tos_key = encap ? TCA_FLOWER_KEY_ENC_IP_TOS : TCA_FLOWER_KEY_IP_TOS; 1189 int ttl_key = encap ? TCA_FLOWER_KEY_ENC_IP_TTL : TCA_FLOWER_KEY_IP_TTL; 1190 int tos_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TOS_MASK : TCA_FLOWER_KEY_IP_TOS_MASK; 1191 int ttl_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TTL_MASK : TCA_FLOWER_KEY_IP_TTL_MASK; 3001 static int fl_dump_key_ip(struct sk_buff *skb, bool encap, argument 3005 int tos_key = encap ? TCA_FLOWER_KEY_ENC_IP_TOS : TCA_FLOWER_KEY_IP_TOS; 3006 int ttl_key = encap ? TCA_FLOWER_KEY_ENC_IP_TTL : TCA_FLOWER_KEY_IP_TTL; 3007 int tos_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TOS_MASK : TCA_FLOWER_KEY_IP_TOS_MASK; 3008 int ttl_mask = encap [all...] |
/linux-master/drivers/crypto/caam/ |
H A D | caamalg_desc.c | 1237 * @encap: true if encapsulation, false if decapsulation 1242 unsigned int icvsize, const bool encap, 1268 if (encap) { 1328 if (encap) { 1240 cnstr_shdsc_chachapoly(u32 * const desc, struct alginfo *cdata, struct alginfo *adata, unsigned int ivsize, unsigned int icvsize, const bool encap, const bool is_qi) argument
|
/linux-master/net/atm/ |
H A D | proc.c | 165 seq_printf(seq, "%s", clip_vcc->encap ? "LLC/SNAP" : "None");
|