Home
last modified time | relevance | path

Searched refs:tun_key (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/net/psample/
Dpsample.c218 const struct ip_tunnel_key *tun_key = &tun_info->key; in __psample_ip_tun_to_nlattr() local
221 if (tun_key->tun_flags & TUNNEL_KEY && in __psample_ip_tun_to_nlattr()
222 nla_put_be64(skb, PSAMPLE_TUNNEL_KEY_ATTR_ID, tun_key->tun_id, in __psample_ip_tun_to_nlattr()
232 if (tun_key->u.ipv4.src && in __psample_ip_tun_to_nlattr()
234 tun_key->u.ipv4.src)) in __psample_ip_tun_to_nlattr()
236 if (tun_key->u.ipv4.dst && in __psample_ip_tun_to_nlattr()
238 tun_key->u.ipv4.dst)) in __psample_ip_tun_to_nlattr()
242 if (!ipv6_addr_any(&tun_key->u.ipv6.src) && in __psample_ip_tun_to_nlattr()
244 &tun_key->u.ipv6.src)) in __psample_ip_tun_to_nlattr()
246 if (!ipv6_addr_any(&tun_key->u.ipv6.dst) && in __psample_ip_tun_to_nlattr()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_gre.c31 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()
39 if (tun_key->tun_flags & (TUNNEL_CSUM | TUNNEL_SEQ)) in mlx5e_gen_ip_tunnel_header_gretap()
46 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); in mlx5e_gen_ip_tunnel_header_gretap()
47 if (tun_key->tun_flags & TUNNEL_KEY) { in mlx5e_gen_ip_tunnel_header_gretap()
Dtc_tun_mplsoudp.c32 const struct ip_tunnel_key *tun_key = &r->tun_info->key; in generate_ip_tun_hdr() local
37 tun_id = be32_to_cpu(tunnel_id_to_key32(tun_key->tun_id)); in generate_ip_tun_hdr()
41 udp->dest = tun_key->tp_dst; in generate_ip_tun_hdr()
42 *mpls = mpls_entry_encode(tun_id, tun_key->ttl, tun_key->tos, true); in generate_ip_tun_hdr()
Dtc_tun.c190 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv4() local
201 fl4.flowi4_tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
202 fl4.daddr = tun_key->u.ipv4.dst; in mlx5e_tc_tun_create_header_ipv4()
203 fl4.saddr = tun_key->u.ipv4.src; in mlx5e_tc_tun_create_header_ipv4()
204 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4()
257 ip->tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
355 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv6() local
365 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6()
367 fl6.flowlabel = ip6_make_flowinfo(RT_TOS(tun_key->tos), tun_key->label); in mlx5e_tc_tun_create_header_ipv6()
368 fl6.daddr = tun_key->u.ipv6.dst; in mlx5e_tc_tun_create_header_ipv6()
[all …]
Dtc_tun_vxlan.c86 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_gen_ip_tunnel_header_vxlan() local
87 __be32 tun_id = tunnel_id_to_key32(tun_key->tun_id); in mlx5e_gen_ip_tunnel_header_vxlan()
94 udp->dest = tun_key->tp_dst; in mlx5e_gen_ip_tunnel_header_vxlan()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c106 const struct ip_tunnel_key *tun_key = &tun_info->key; in bnxt_tc_parse_tunnel_set() local
113 actions->tun_encap_key = *tun_key; in bnxt_tc_parse_tunnel_set()
469 flow->tun_key.u.ipv4.dst = match.key->dst; in bnxt_tc_parse_flow()
471 flow->tun_key.u.ipv4.src = match.key->src; in bnxt_tc_parse_flow()
483 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow()
492 flow->tun_key.tp_dst = match.key->dst; in bnxt_tc_parse_flow()
494 flow->tun_key.tp_src = match.key->src; in bnxt_tc_parse_flow()
793 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local
808 req.tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
828 req.dst_ipaddr[0] = tun_key->u.ipv4.dst; in hwrm_cfa_decap_filter_alloc()
[all …]
Dbnxt_tc.h130 struct ip_tunnel_key tun_key; member
/Linux-v5.10/net/openvswitch/
Dflow_netlink.c685 SW_FLOW_KEY_PUT(match, tun_key.tun_id, in ip_tun_from_nlattr()
690 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.src, in ip_tun_from_nlattr()
695 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.dst, in ip_tun_from_nlattr()
700 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src, in ip_tun_from_nlattr()
705 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst, in ip_tun_from_nlattr()
710 SW_FLOW_KEY_PUT(match, tun_key.tos, in ip_tun_from_nlattr()
714 SW_FLOW_KEY_PUT(match, tun_key.ttl, in ip_tun_from_nlattr()
725 SW_FLOW_KEY_PUT(match, tun_key.tp_src, in ip_tun_from_nlattr()
729 SW_FLOW_KEY_PUT(match, tun_key.tp_dst, in ip_tun_from_nlattr()
788 SW_FLOW_KEY_PUT(match, tun_key.tun_flags, tun_flags, is_mask); in ip_tun_from_nlattr()
[all …]
Dflow.c861 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key)); in ovs_flow_key_extract()
877 memset(&key->tun_key, 0, sizeof(key->tun_key)); in ovs_flow_key_extract()
Dflow.h65 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ member
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c423 nfp_flower_compile_tun_gre_key(&ext->tun_key, &msk->tun_key, in nfp_flower_compile_ipv4_gre_tun()
467 nfp_flower_compile_tun_gre_key(&ext->tun_key, &msk->tun_key, in nfp_flower_compile_ipv6_gre_tun()
Dcmsg.h507 __be32 tun_key; member
547 __be32 tun_key; member