/linux-master/net/ipv4/ |
H A D | fou_bpf.c | 27 /* bpf_skb_set_fou_encap - Set FOU encap parameters 37 * @encap Pointer to a `struct bpf_fou_encap` storing UDP src and 39 * port. This is similar to using `encap-sport auto`. 45 struct bpf_fou_encap *encap, int type) 50 if (unlikely(!encap)) 58 info->encap.type = TUNNEL_ENCAP_FOU; 61 info->encap.type = TUNNEL_ENCAP_GUE; 64 info->encap.type = TUNNEL_ENCAP_NONE; 68 info->encap.flags |= TUNNEL_ENCAP_FLAG_CSUM; 70 info->encap 44 bpf_skb_set_fou_encap(struct __sk_buff *skb_ctx, struct bpf_fou_encap *encap, int type) argument 86 bpf_skb_get_fou_encap(struct __sk_buff *skb_ctx, struct bpf_fou_encap *encap) argument [all...] |
H A D | esp4.c | 136 struct xfrm_encap_tmpl *encap = x->encap; local 148 sport = encap->encap_sport; 149 dport = encap->encap_dport; 177 if (encap->encap_sport != sport || 178 encap->encap_dport != dport) { 278 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) 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/drivers/net/ethernet/sfc/ |
H A D | tc_encap_actions.c | 85 struct efx_tc_encap_action *encap, struct net *net, 97 switch ((int)encap->type) { 101 flow4.fl4_dport = encap->key.tp_dst; 102 flow4.flowi4_tos = encap->key.tos; 103 flow4.daddr = encap->key.u.ipv4.dst; 104 flow4.saddr = encap->key.u.ipv4.src; 109 flow6.fl6_dport = encap->key.tp_dst; 110 flow6.flowlabel = ip6_make_flowinfo(encap->key.tos, 111 encap->key.label); 112 flow6.daddr = encap 84 efx_bind_neigh(struct efx_nic *efx, struct efx_tc_encap_action *encap, struct net *net, struct netlink_ext_ack *extack) argument 235 efx_release_neigh(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 249 efx_gen_tun_header_eth(struct efx_tc_encap_action *encap, u16 proto) argument 265 efx_gen_tun_header_ipv4(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) argument 285 efx_gen_tun_header_ipv6(struct efx_tc_encap_action *encap, u8 ipproto, u8 len) argument 304 efx_gen_tun_header_udp(struct efx_tc_encap_action *encap, u8 len) argument 316 efx_gen_tun_header_vxlan(struct efx_tc_encap_action *encap) argument 328 efx_gen_tun_header_geneve(struct efx_tc_encap_action *encap) argument 349 efx_gen_vxlan_header_ipv4(struct efx_tc_encap_action *encap) argument 360 efx_gen_geneve_header_ipv4(struct efx_tc_encap_action *encap) argument 371 efx_gen_vxlan_header_ipv6(struct efx_tc_encap_action *encap) argument 381 efx_gen_geneve_header_ipv6(struct efx_tc_encap_action *encap) argument 391 efx_gen_encap_header(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 428 efx_tc_update_encap(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 507 struct efx_tc_encap_action *encap; local 603 struct efx_tc_encap_action *encap, *old; local 691 efx_tc_flower_release_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 705 struct efx_tc_encap_action *encap, *next; local [all...] |
H A D | mae.h | 100 struct efx_tc_encap_action *encap); 102 struct efx_tc_encap_action *encap); 104 struct efx_tc_encap_action *encap); 119 struct efx_tc_encap_match *encap); 121 struct efx_tc_encap_match *encap);
|
H A D | tc_counters.c | 90 struct efx_tc_encap_action *encap; local 99 encap = act->encap_md; 100 if (!encap) 102 if (!encap->neigh) /* can't happen */ 104 if (time_after_eq(encap->neigh->used, touched)) 106 encap->neigh->used = touched; 110 if (encap->neigh->dst_ip) 111 n = neigh_lookup(&arp_tbl, &encap->neigh->dst_ip, 112 encap->neigh->egdev); 116 &encap [all...] |
H A D | tc.c | 469 struct efx_tc_encap_match *encap) 473 if (!refcount_dec_and_test(&encap->ref)) 476 if (encap->type == EFX_TC_EM_DIRECT) { 477 rc = efx_mae_unregister_encap_match(efx, encap); 483 "Failed to release encap match %#x, rc %d\n", 484 encap->fw_id, rc); 486 rhashtable_remove_fast(&efx->tc->encap_match_ht, &encap->linkage, 488 if (encap->pseudo) 489 efx_tc_flower_release_encap_match(efx, encap->pseudo); 490 kfree(encap); 468 efx_tc_flower_release_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) argument 501 struct efx_tc_encap_match *encap, *old, *pseudo = NULL; local 2304 struct efx_tc_encap_action *encap; local 2931 struct efx_tc_encap_match *encap = ptr; local [all...] |
H A D | mae.c | 712 * (and thus identified the encap protocol to use to extract it). 719 NL_SET_ERR_MSG_MOD(extack, "No support for encap rule ID matches"); 725 NL_SET_ERR_MSG_MOD(extack, "Match on enc_keyid requires other encap fields"); 801 NL_SET_ERR_MSG_MOD(extack, "Unexpected encap match in LHS rule"); 825 /* Checks that the fields needed for encap-rule matches are supported by the 955 struct efx_tc_encap_action *encap) 962 rc = efx_mae_encap_type_to_mae_type(encap->type); 966 inlen = MC_CMD_MAE_ENCAP_HEADER_ALLOC_IN_LEN(encap->encap_hdr_len); 970 encap->encap_hdr, 971 encap 954 efx_mae_allocate_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 982 efx_mae_update_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 1007 efx_mae_free_encap_md(struct efx_nic *efx, struct efx_tc_encap_action *encap) argument 1475 efx_mae_register_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) argument 1546 efx_mae_unregister_encap_match(struct efx_nic *efx, struct efx_tc_encap_match *encap) argument [all...] |
H A D | tc_encap_actions.h | 32 * @ref: counts encap actions referencing this entry 33 * @used: jiffies of last time traffic hit any encap action using this. 38 * @work: processes neighbour state changes, updates the encap actions 41 * Associates a neighbour entry with the encap actions that are 67 /* This limit is arbitrary; current hardware (SN1022) handles encap headers 83 u32 fw_id; /* index of this entry in firmware encap table */ 98 struct efx_tc_encap_action *encap);
|
/linux-master/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_vlan.h | 16 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ member in struct:ebt_vlan_info 18 bit 2=1 User-Priority arg, bit 3=1 encap*/
|
/linux-master/tools/testing/selftests/bpf/progs/ |
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...] |
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_tunnel_kern.c | 30 struct bpf_fou_encap *encap, int type) __ksym; 32 struct bpf_fou_encap *encap) __ksym; 741 struct bpf_fou_encap encap = {}; local 762 encap.sport = 0; 763 encap.dport = bpf_htons(5555); 765 ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_GUE); 778 struct bpf_fou_encap encap = {}; local 799 encap.sport = 0; 800 encap.dport = bpf_htons(5555); 802 ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_FO 816 struct bpf_fou_encap encap = {}; local [all...] |
/linux-master/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 34 __be16 encap; local 38 encap = skb->protocol; 48 encap = fp->h_vlan_encapsulated_proto; 72 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); 141 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { 142 pr_debug("encap frame length %d is less than " 143 "minimal\n", ntohs(info->encap));
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | tun.c | 30 parse_state->encap = true;
|
/linux-master/include/net/ |
H A D | ip6_tunnel.h | 65 struct ip_tunnel_encap encap; member in struct:ip6_tnl 115 if (t->encap.type == TUNNEL_ENCAP_NONE) 118 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) 122 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); 124 ret = ops->build_header(skb, &t->encap, protocol, fl6);
|
H A D | atmclip.h | 27 unsigned char encap; /* 0: NULL, 1: LLC/SNAP */ member in struct:clip_vcc
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_encap.c | 127 /* Flow can be associated with multiple encap entries. 196 /* update from slow path rule to encap rule */ 231 /* mark the flow's encap dest as non-valid */ 242 /* update from encap rule to slow path rule */ 248 mlx5_core_warn(priv->mdev, "Failed to update slow path (encap) flow, %d\n", 260 /* we know that the encap is valid */ 272 * unoffloaded from hardware, otherwise deleting encap will 284 /* Takes reference to all flows attached to encap and adds the flows to 322 /* find encap with non-zero reference counter value */ 341 /* release starting encap */ 792 struct mlx5e_tc_tun_encap *encap; local 1158 mlx5e_route_get(struct mlx5e_tc_tun_encap *encap, struct mlx5e_route_key *key, u32 hash_key) argument 1182 struct mlx5e_tc_tun_encap *encap; local 1222 mlx5e_route_lookup_for_update(struct mlx5e_tc_tun_encap *encap, struct mlx5e_route_key *key) argument 1727 mlx5e_init_fib_work_ipv4(struct mlx5e_priv *priv, struct net_device *ul_dev, struct mlx5e_tc_tun_encap *encap, unsigned long event, struct fib_notifier_info *info) argument 1772 mlx5e_init_fib_work_ipv6(struct mlx5e_priv *priv, struct net_device *ul_dev, struct mlx5e_tc_tun_encap *encap, unsigned long event, struct fib_notifier_info *info) argument 1819 struct mlx5e_tc_tun_encap *encap; local 1856 struct mlx5e_tc_tun_encap *encap; local 1877 mlx5e_tc_tun_cleanup(struct mlx5e_tc_tun_encap *encap) argument [all...] |
H A D | tc_tun_encap.h | 48 void mlx5e_tc_tun_cleanup(struct mlx5e_tc_tun_encap *encap);
|
/linux-master/include/soc/fsl/ |
H A D | caam-blob.h | 58 * @encap: true for encapsulation, false for decapsulation 64 struct caam_blob_info *info, bool encap);
|
/linux-master/tools/testing/selftests/net/ |
H A D | srv6_hencap_red_l3vpn_test.sh | 425 encap seg6local action End dev "${VRF_DEVNAME}" 431 encap seg6local action End.DT46 vrftable "${VRF_TID}" \ 458 # $5 - encap mode (full or red) 484 encap seg6 mode "${mode}" segs "${policy}" \ 495 encap seg6 mode "${mode}" segs "${policy}" \ 618 setup_rt_policy_ipv6 2 1 "3 4" 2 encap.red 619 setup_rt_policy_ipv6 1 2 "" 1 encap.red 631 setup_rt_policy_ipv4 2 1 "" 2 encap.red 632 setup_rt_policy_ipv4 1 2 "4 3" 1 encap.red 645 setup_rt_policy_ipv6 4 3 "2" 4 encap [all...] |
H A D | ioam6.sh | 218 ip -netns $ioam_tmp_node route add db02::/64 encap ioam6 mode inline \ 222 ip -netns $ioam_tmp_node -6 route | grep -q "encap ioam6" 256 "kernel, tests that require it (encap mode) will be omitted" 413 [ $encap_tests = 0 ] && $t "encap" 434 [ $encap_tests = 0 ] && $t "encap" 453 [ $encap_tests = 0 ] && $t "encap" 478 # Make sure that the encap node won't fill the trace if the chosen IOAM # 483 [ "$1" = "encap" ] && mode="$1 tundst db01::1" || mode="$1" 484 [ "$1" = "encap" ] && ip -netns $ioam_node_beta link set ip6tnl0 up 486 ip -netns $ioam_node_alpha route change db01::/64 encap ioam [all...] |
/linux-master/net/ipv6/ |
H A D | esp6.c | 153 struct xfrm_encap_tmpl *encap = x->encap; local 165 sport = encap->encap_sport; 166 dport = encap->encap_dport; 194 if (encap->encap_sport != sport || 195 encap->encap_dport != dport) { 266 /* UDP encap with IPv6 requires a valid checksum */ 314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) 448 struct xfrm_encap_tmpl *encap local 804 struct xfrm_encap_tmpl *encap = x->encap; local 1225 struct xfrm_encap_tmpl *encap = x->encap; local [all...] |
/linux-master/net/netfilter/ |
H A D | nft_flow_offload.c | 86 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member in struct:nft_forward_info 128 info->encap[info->num_encaps].id = path->encap.id; 129 info->encap[info->num_encaps].proto = path->encap.proto; 132 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); 143 info->encap[info->num_encaps].id = path->bridge.vlan_id; 144 info->encap[info->num_encaps].proto = path->bridge.vlan_proto; 206 route->tuple[!dir].in.encap[i].id = info.encap[ [all...] |
/linux-master/net/l2tp/ |
H A D | trace.h | 60 __field(enum l2tp_encap_type, encap) 68 __entry->encap = tunnel->encap; 70 TP_printk("%s: type=%s encap=%s version=L2TPv%d tid=%u ptid=%u fd=%d", 73 show_encap_type_name(__entry->encap),
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_rxtx.c | 223 struct xfrm_encap_tmpl *encap; local 249 encap = x->encap; 250 if (!encap) { 254 } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) {
|