Lines Matching refs:tun_key
102 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()
319 flow->tun_key.u.ipv4.dst = key->dst; in bnxt_tc_parse_flow()
321 flow->tun_key.u.ipv4.src = key->src; in bnxt_tc_parse_flow()
335 flow->tun_key.tun_id = key32_to_tunnel_id(key->keyid); in bnxt_tc_parse_flow()
346 flow->tun_key.tp_dst = key->dst; in bnxt_tc_parse_flow()
348 flow->tun_key.tp_src = key->src; in bnxt_tc_parse_flow()
565 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local
580 req.tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
600 req.dst_ipaddr[0] = tun_key->u.ipv4.dst; in hwrm_cfa_decap_filter_alloc()
601 req.src_ipaddr[0] = tun_key->u.ipv4.src; in hwrm_cfa_decap_filter_alloc()
606 req.dst_port = tun_key->tp_dst; in hwrm_cfa_decap_filter_alloc()
889 struct ip_tunnel_key *tun_key) in bnxt_tc_get_tunnel_node() argument
894 tunnel_node = rhashtable_lookup_fast(tunnel_table, tun_key, *ht_params); in bnxt_tc_get_tunnel_node()
902 tunnel_node->key = *tun_key; in bnxt_tc_get_tunnel_node()
995 struct ip_tunnel_key *tun_key, in bnxt_tc_resolve_tunnel_hdrs() argument
1007 flow.fl4_dport = tun_key->tp_dst; in bnxt_tc_resolve_tunnel_hdrs()
1008 flow.daddr = tun_key->u.ipv4.dst; in bnxt_tc_resolve_tunnel_hdrs()
1053 tun_key->u.ipv4.src = flow.saddr; in bnxt_tc_resolve_tunnel_hdrs()
1054 tun_key->ttl = ip4_dst_hoplimit(&rt->dst); in bnxt_tc_resolve_tunnel_hdrs()
1073 struct ip_tunnel_key *decap_key = &flow->tun_key; in bnxt_tc_get_decap_handle()
1077 struct ip_tunnel_key tun_key = { 0 }; in bnxt_tc_get_decap_handle() local
1103 tun_key.u.ipv4.dst = flow->tun_key.u.ipv4.src; in bnxt_tc_get_decap_handle()
1104 tun_key.tp_dst = flow->tun_key.tp_dst; in bnxt_tc_get_decap_handle()
1105 rc = bnxt_tc_resolve_tunnel_hdrs(bp, &tun_key, &l2_info); in bnxt_tc_get_decap_handle()