Home
last modified time | relevance | path

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

/linux-6.15/net/psample/
H A Dpsample.c235 if (tun_key->u.ipv4.src && in __psample_ip_tun_to_nlattr()
239 if (tun_key->u.ipv4.dst && in __psample_ip_tun_to_nlattr()
255 if (tun_key->tos && in __psample_ip_tun_to_nlattr()
266 if (tun_key->tp_src && in __psample_ip_tun_to_nlattr()
269 if (tun_key->tp_dst && in __psample_ip_tun_to_nlattr()
326 if (tun_key->u.ipv4.src) in psample_tunnel_meta_len()
328 if (tun_key->u.ipv4.dst) in psample_tunnel_meta_len()
338 if (tun_key->tos) in psample_tunnel_meta_len()
345 if (tun_key->tp_src) in psample_tunnel_meta_len()
347 if (tun_key->tp_dst) in psample_tunnel_meta_len()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
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 Dtc_tun.c237 attr.fl.fl4.daddr = tun_key->u.ipv4.dst; in mlx5e_tc_tun_create_header_ipv4()
239 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv4()
287 ip->tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
355 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_update_header_ipv4()
392 ip->tos = tun_key->tos; in mlx5e_tc_tun_update_header_ipv4()
507 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_create_header_ipv6()
508 attr.fl.fl6.flowlabel = ip6_make_flowinfo(tun_key->tos, tun_key->label); in mlx5e_tc_tun_create_header_ipv6()
558 ip6_flow_hdr(ip6h, tun_key->tos, 0); in mlx5e_tc_tun_create_header_ipv6()
621 attr.ttl = tun_key->ttl; in mlx5e_tc_tun_update_header_ipv6()
623 attr.fl.fl6.flowlabel = ip6_make_flowinfo(tun_key->tos, tun_key->label); in mlx5e_tc_tun_update_header_ipv6()
[all …]
H A Dtc_tun_vxlan.c87 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 Dtc_tun_mplsoudp.c32 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-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c114 actions->tun_encap_key = *tun_key; in bnxt_tc_parse_tunnel_set()
800 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local
845 req->dst_port = tun_key->tp_dst; in hwrm_cfa_decap_filter_alloc()
1124 struct ip_tunnel_key *tun_key) in bnxt_tc_get_tunnel_node() argument
1137 tunnel_node->key = *tun_key; in bnxt_tc_get_tunnel_node()
1242 flow.fl4_dport = tun_key->tp_dst; in bnxt_tc_resolve_tunnel_hdrs()
1243 flow.daddr = tun_key->u.ipv4.dst; in bnxt_tc_resolve_tunnel_hdrs()
1288 tun_key->u.ipv4.src = flow.saddr; in bnxt_tc_resolve_tunnel_hdrs()
1312 struct ip_tunnel_key tun_key = { 0 }; in bnxt_tc_get_decap_handle() local
1338 tun_key.u.ipv4.dst = flow->tun_key.u.ipv4.src; in bnxt_tc_get_decap_handle()
[all …]
H A Dbnxt_tc.h130 struct ip_tunnel_key tun_key; member
/linux-6.15/net/openvswitch/
H A Dflow_netlink.c706 SW_FLOW_KEY_PUT(match, tun_key.tun_id, 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()
837 if (match->key->tun_key.u.ipv4.src || in ip_tun_from_nlattr()
839 match->key->tun_key.tp_src || in ip_tun_from_nlattr()
840 match->key->tun_key.tp_dst || in ip_tun_from_nlattr()
841 match->key->tun_key.ttl || in ip_tun_from_nlattr()
842 match->key->tun_key.tos || in ip_tun_from_nlattr()
[all …]
H A Dflow.c1014 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 Dflow.h78 struct ip_tunnel_key tun_key; /* Encapsulating tunnel key. */ member
/linux-6.15/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c497 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 Dcmsg.h512 __be32 tun_key; member
552 __be32 tun_key; member