Lines Matching refs:tun_key
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()
470 flow->tun_key.u.ipv4.dst = match.key->dst; in bnxt_tc_parse_flow()
472 flow->tun_key.u.ipv4.src = match.key->src; in bnxt_tc_parse_flow()
484 flow->tun_key.tun_id = key32_to_tunnel_id(match.key->keyid); in bnxt_tc_parse_flow()
493 flow->tun_key.tp_dst = match.key->dst; in bnxt_tc_parse_flow()
495 flow->tun_key.tp_src = match.key->src; in bnxt_tc_parse_flow()
796 struct ip_tunnel_key *tun_key = &flow->tun_key; in hwrm_cfa_decap_filter_alloc() local
814 req->tunnel_id = tunnel_id_to_key32(tun_key->tun_id); in hwrm_cfa_decap_filter_alloc()
835 req->dst_ipaddr[0] = tun_key->u.ipv4.dst; in hwrm_cfa_decap_filter_alloc()
836 req->src_ipaddr[0] = tun_key->u.ipv4.src; in hwrm_cfa_decap_filter_alloc()
841 req->dst_port = tun_key->tp_dst; in hwrm_cfa_decap_filter_alloc()
1120 struct ip_tunnel_key *tun_key) in bnxt_tc_get_tunnel_node() argument
1125 tunnel_node = rhashtable_lookup_fast(tunnel_table, tun_key, *ht_params); in bnxt_tc_get_tunnel_node()
1133 tunnel_node->key = *tun_key; in bnxt_tc_get_tunnel_node()
1226 struct ip_tunnel_key *tun_key, in bnxt_tc_resolve_tunnel_hdrs() argument
1238 flow.fl4_dport = tun_key->tp_dst; in bnxt_tc_resolve_tunnel_hdrs()
1239 flow.daddr = tun_key->u.ipv4.dst; in bnxt_tc_resolve_tunnel_hdrs()
1284 tun_key->u.ipv4.src = flow.saddr; in bnxt_tc_resolve_tunnel_hdrs()
1285 tun_key->ttl = ip4_dst_hoplimit(&rt->dst); in bnxt_tc_resolve_tunnel_hdrs()
1304 struct ip_tunnel_key *decap_key = &flow->tun_key; in bnxt_tc_get_decap_handle()
1308 struct ip_tunnel_key tun_key = { 0 }; in bnxt_tc_get_decap_handle() local
1334 tun_key.u.ipv4.dst = flow->tun_key.u.ipv4.src; in bnxt_tc_get_decap_handle()
1335 tun_key.tp_dst = flow->tun_key.tp_dst; in bnxt_tc_get_decap_handle()
1336 rc = bnxt_tc_resolve_tunnel_hdrs(bp, &tun_key, &l2_info); in bnxt_tc_get_decap_handle()