Home
last modified time | relevance | path

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

/Linux-v5.4/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.c213 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv4() local
224 fl4.flowi4_tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
225 fl4.daddr = tun_key->u.ipv4.dst; in mlx5e_tc_tun_create_header_ipv4()
226 fl4.saddr = tun_key->u.ipv4.src; in mlx5e_tc_tun_create_header_ipv4()
227 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4()
280 ip->tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
332 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv6() local
342 ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6()
344 fl6.flowlabel = ip6_make_flowinfo(RT_TOS(tun_key->tos), tun_key->label); in mlx5e_tc_tun_create_header_ipv6()
345 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.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c102 const struct ip_tunnel_key *tun_key = &tun_info->key; in bnxt_tc_parse_tunnel_set() local
109 actions->tun_encap_key = *tun_key; in bnxt_tc_parse_tunnel_set()
274 flow->tun_key.u.ipv4.dst = match.key->dst; in bnxt_tc_parse_flow()
276 flow->tun_key.u.ipv4.src = match.key->src; in bnxt_tc_parse_flow()
288 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow()
297 flow->tun_key.tp_dst = match.key->dst; in bnxt_tc_parse_flow()
299 flow->tun_key.tp_src = match.key->src; in bnxt_tc_parse_flow()
527 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local
542 req.tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
562 req.dst_ipaddr[0] = tun_key->u.ipv4.dst; in hwrm_cfa_decap_filter_alloc()
[all …]
Dbnxt_tc.h110 struct ip_tunnel_key tun_key; member
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c683 SW_FLOW_KEY_PUT(match, tun_key.tun_id, in ip_tun_from_nlattr()
688 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.src, in ip_tun_from_nlattr()
693 SW_FLOW_KEY_PUT(match, tun_key.u.ipv4.dst, in ip_tun_from_nlattr()
698 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src, in ip_tun_from_nlattr()
703 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst, in ip_tun_from_nlattr()
708 SW_FLOW_KEY_PUT(match, tun_key.tos, in ip_tun_from_nlattr()
712 SW_FLOW_KEY_PUT(match, tun_key.ttl, in ip_tun_from_nlattr()
723 SW_FLOW_KEY_PUT(match, tun_key.tp_src, in ip_tun_from_nlattr()
727 SW_FLOW_KEY_PUT(match, tun_key.tp_dst, in ip_tun_from_nlattr()
786 SW_FLOW_KEY_PUT(match, tun_key.tun_flags, tun_flags, is_mask); in ip_tun_from_nlattr()
[all …]
Dflow.c853 memcpy(&key->tun_key, &tun_info->key, sizeof(key->tun_key)); in ovs_flow_key_extract()
869 memset(&key->tun_key, 0, sizeof(key->tun_key)); in ovs_flow_key_extract()
Dflow.h64 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c337 ext->tun_key = match.key->keyid; in nfp_flower_compile_ipv4_gre_tun()
338 msk->tun_key = match.mask->keyid; in nfp_flower_compile_ipv4_gre_tun()
Dcmsg.h444 __be32 tun_key; member