Lines Matching refs:tun_entry

19 			   struct bnxt_tun_cache_entry *tun_entry,  in ulp_install_outer_tun_flow()  argument
53 memcpy(tun_entry->t_dmac, in ulp_install_outer_tun_flow()
57 tun_entry->valid = true; in ulp_install_outer_tun_flow()
58 tun_entry->tun_flow_info[params->port_id].state = in ulp_install_outer_tun_flow()
60 tun_entry->outer_tun_flow_id = params->fid; in ulp_install_outer_tun_flow()
65 if (tun_entry->t_dst_ip_valid) in ulp_install_outer_tun_flow()
68 memcpy(&tun_entry->t_dst_ip, in ulp_install_outer_tun_flow()
72 memcpy(tun_entry->t_dst_ip6, in ulp_install_outer_tun_flow()
74 sizeof(tun_entry->t_dst_ip6)); in ulp_install_outer_tun_flow()
75 tun_entry->t_dst_ip_valid = true; in ulp_install_outer_tun_flow()
81 memset(tun_entry, 0, sizeof(struct bnxt_tun_cache_entry)); in ulp_install_outer_tun_flow()
87 ulp_install_inner_tun_flow(struct bnxt_tun_cache_entry *tun_entry, in ulp_install_inner_tun_flow() argument
98 flow_info = &tun_entry->tun_flow_info[tun_o_params->port_id]; in ulp_install_inner_tun_flow()
101 tun_entry->t_dmac, RTE_ETHER_ADDR_LEN); in ulp_install_inner_tun_flow()
102 params->parent_fid = tun_entry->outer_tun_flow_id; in ulp_install_inner_tun_flow()
118 struct bnxt_tun_cache_entry *tun_entry, in ulp_post_process_outer_tun_flow() argument
124 flow_state = tun_entry->tun_flow_info[params->port_id].state; in ulp_post_process_outer_tun_flow()
125 ret = ulp_install_outer_tun_flow(params, tun_entry, tun_idx); in ulp_post_process_outer_tun_flow()
135 ulp_install_inner_tun_flow(tun_entry, params); in ulp_post_process_outer_tun_flow()
145 struct bnxt_tun_cache_entry *tun_entry) in ulp_post_process_first_inner_tun_flow() argument
163 flow_info = &tun_entry->tun_flow_info[params->port_id]; in ulp_post_process_first_inner_tun_flow()
174 if (tun_entry->t_dst_ip_valid) in ulp_post_process_first_inner_tun_flow()
177 memcpy(&tun_entry->t_dst_ip, in ulp_post_process_first_inner_tun_flow()
181 memcpy(tun_entry->t_dst_ip6, in ulp_post_process_first_inner_tun_flow()
183 sizeof(tun_entry->t_dst_ip6)); in ulp_post_process_first_inner_tun_flow()
184 tun_entry->t_dst_ip_valid = true; in ulp_post_process_first_inner_tun_flow()
195 struct bnxt_tun_cache_entry *tun_entry) in ulp_post_process_inner_tun_flow() argument
198 tun_entry->t_dmac, RTE_ETHER_ADDR_LEN); in ulp_post_process_inner_tun_flow()
200 params->parent_fid = tun_entry->outer_tun_flow_id; in ulp_post_process_inner_tun_flow()
207 struct bnxt_tun_cache_entry **tun_entry, in ulp_get_tun_entry() argument
236 *tun_entry = &tun_tbl[i]; in ulp_get_tun_entry()
241 *tun_entry = &tun_tbl[first_free_entry]; in ulp_get_tun_entry()
254 struct bnxt_tun_cache_entry *tun_entry; in ulp_post_process_tun_flow() local
266 rc = ulp_get_tun_entry(params, &tun_entry, &tun_idx); in ulp_post_process_tun_flow()
270 flow_state = tun_entry->tun_flow_info[params->port_id].state; in ulp_post_process_tun_flow()
286 tun_entry->outer_tun_rej_cnt++; in ulp_post_process_tun_flow()
289 tun_entry->outer_tun_rej_cnt); in ulp_post_process_tun_flow()
294 tun_entry->inner_tun_rej_cnt++; in ulp_post_process_tun_flow()
297 tun_entry->inner_tun_rej_cnt); in ulp_post_process_tun_flow()
303 return ulp_post_process_first_inner_tun_flow(params, tun_entry); in ulp_post_process_tun_flow()
305 return ulp_post_process_outer_tun_flow(params, tun_entry, in ulp_post_process_tun_flow()
308 return ulp_post_process_inner_tun_flow(params, tun_entry); in ulp_post_process_tun_flow()