/linux/net/psample/ |
H A D | psample.c | 221 const struct ip_tunnel_key *tun_key = &tun_info->key; in __psample_ip_tun_to_nlattr() local 224 if (test_bit(IP_TUNNEL_KEY_BIT, tun_key->tun_flags) && in __psample_ip_tun_to_nlattr() 225 nla_put_be64(skb, PSAMPLE_TUNNEL_KEY_ATTR_ID, tun_key->tun_id, in __psample_ip_tun_to_nlattr() 235 if (tun_key->u.ipv4.src && in __psample_ip_tun_to_nlattr() 237 tun_key->u.ipv4.src)) in __psample_ip_tun_to_nlattr() 239 if (tun_key->u.ipv4.dst && in __psample_ip_tun_to_nlattr() 241 tun_key->u.ipv4.dst)) in __psample_ip_tun_to_nlattr() 245 if (!ipv6_addr_any(&tun_key->u.ipv6.src) && in __psample_ip_tun_to_nlattr() 247 &tun_key->u.ipv6.src)) in __psample_ip_tun_to_nlattr() 249 if (!ipv6_addr_any(&tun_key->u.ipv6.dst) && in __psample_ip_tun_to_nlattr() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun.c | 228 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv4() local 239 attr.fl.fl4.flowi4_tos = tun_key->tos & ~INET_ECN_MASK; in mlx5e_tc_tun_create_header_ipv4() 240 attr.fl.fl4.daddr = tun_key->u.ipv4.dst; in mlx5e_tc_tun_create_header_ipv4() 241 attr.fl.fl4.saddr = tun_key->u.ipv4.src; in mlx5e_tc_tun_create_header_ipv4() 242 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4() 290 ip->tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4() 345 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_update_header_ipv4() local 355 attr.fl.fl4.flowi4_tos = tun_key->tos & ~INET_ECN_MASK; in mlx5e_tc_tun_update_header_ipv4() 356 attr.fl.fl4.daddr = tun_key->u.ipv4.dst; in mlx5e_tc_tun_update_header_ipv4() 357 attr.fl.fl4.saddr = tun_key->u.ipv4.src; in mlx5e_tc_tun_update_header_ipv4() [all …]
|
H A D | tc_tun_gre.c | 31 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_gen_ip_tunnel_header_gretap() local 33 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_gretap() 43 if (ip_tunnel_flags_intersect(tun_key->tun_flags, unsupp)) in mlx5e_gen_ip_tunnel_header_gretap() 50 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); in mlx5e_gen_ip_tunnel_header_gretap() 51 if (test_bit(IP_TUNNEL_KEY_BIT, tun_key->tun_flags)) { in mlx5e_gen_ip_tunnel_header_gretap()
|
H A D | tc_tun_vxlan.c | 87 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_gen_ip_tunnel_header_vxlan() local 88 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_vxlan() 93 if (test_bit(IP_TUNNEL_VXLAN_OPT_BIT, tun_key->tun_flags) && in mlx5e_gen_ip_tunnel_header_vxlan() 99 udp->dest = tun_key->tp_dst; in mlx5e_gen_ip_tunnel_header_vxlan() 102 if (test_bit(IP_TUNNEL_VXLAN_OPT_BIT, tun_key->tun_flags)) { in mlx5e_gen_ip_tunnel_header_vxlan()
|
H A D | tc_tun_mplsoudp.c | 32 const struct ip_tunnel_key *tun_key = &r->tun_info->key; in generate_ip_tun_hdr() local 40 udp->dest = tun_key->tp_dst; in generate_ip_tun_hdr()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 107 const struct ip_tunnel_key *tun_key = &tun_info->key; in bnxt_tc_parse_tunnel_set() local 114 actions->tun_encap_key = *tun_key; in bnxt_tc_parse_tunnel_set() 474 flow->tun_key.u.ipv4.dst = match.key->dst; in bnxt_tc_parse_flow() 476 flow->tun_key.u.ipv4.src = match.key->src; in bnxt_tc_parse_flow() 488 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow() 497 flow->tun_key.tp_dst = match.key->dst; in bnxt_tc_parse_flow() 499 flow->tun_key.tp_src = match.key->src; in bnxt_tc_parse_flow() 800 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local 818 req->tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc() 839 req->dst_ipaddr[0] = tun_key->u.ipv4.dst; in hwrm_cfa_decap_filter_alloc() [all …]
|
H A D | bnxt_tc.h | 130 struct ip_tunnel_key tun_key; member
|
/linux/net/openvswitch/ |
H A D | flow_netlink.c | 706 SW_FLOW_KEY_PUT(match, tun_key.tun_id, in ip_tun_from_nlattr() 711 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.src, in ip_tun_from_nlattr() 716 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.dst, in ip_tun_from_nlattr() 721 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src, in ip_tun_from_nlattr() 726 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst, in ip_tun_from_nlattr() 731 SW_FLOW_KEY_PUT(match, tun_key.tos, in ip_tun_from_nlattr() 735 SW_FLOW_KEY_PUT(match, tun_key.ttl, in ip_tun_from_nlattr() 746 SW_FLOW_KEY_PUT(match, tun_key.tp_src, in ip_tun_from_nlattr() 750 SW_FLOW_KEY_PUT(match, tun_key.tp_dst, in ip_tun_from_nlattr() 809 SW_FLOW_KEY_BITMAP_COPY(match, tun_key.tun_flags, tun_flags, in ip_tun_from_nlattr() [all …]
|
H A D | flow.c | 1014 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key)); in ovs_flow_key_extract() 1030 memset(&key->tun_key, 0, sizeof(key->tun_key)); in ovs_flow_key_extract()
|
H A D | flow.h | 78 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ member
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_tunnel.sh | 69 tun_key= 71 tun_key="key $1" 76 ip link add dev $DEV_NS type $TYPE seq $tun_key \ 82 ip link add dev $DEV type $TYPE $tun_key external
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 497 nfp_flower_compile_tun_gre_key(&ext->tun_key, &msk->tun_key, in nfp_flower_compile_ipv4_gre_tun() 532 nfp_flower_compile_tun_gre_key(&ext->tun_key, &msk->tun_key, in nfp_flower_compile_ipv6_gre_tun()
|
H A D | cmsg.h | 512 __be32 tun_key; member 552 __be32 tun_key; member
|