Lines Matching refs:tun

275 ice_fdir_remap_entries(struct ice_fd_hw_prof *prof, int tun, int idx)  in ice_fdir_remap_entries()  argument
277 if (idx != prof->cnt && tun < ICE_FD_HW_SEG_MAX) { in ice_fdir_remap_entries()
283 old_entry_h = prof->entry_h[i + 1][tun]; in ice_fdir_remap_entries()
284 prof->entry_h[i][tun] = old_entry_h; in ice_fdir_remap_entries()
288 prof->entry_h[i][tun] = 0; in ice_fdir_remap_entries()
307 int tun, i; in ice_fdir_rem_adq_chnl() local
312 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_rem_adq_chnl()
313 u64 prof_id = prof->prof_id[tun]; in ice_fdir_rem_adq_chnl()
319 prof->entry_h[i][tun] = 0; in ice_fdir_rem_adq_chnl()
325 ice_fdir_remap_entries(prof, tun, i); in ice_fdir_rem_adq_chnl()
365 int tun; in ice_fdir_erase_flow_from_hw() local
370 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_erase_flow_from_hw()
371 u64 prof_id = prof->prof_id[tun]; in ice_fdir_erase_flow_from_hw()
377 if (!prof->entry_h[j][tun] || !prof->vsi_h[j]) in ice_fdir_erase_flow_from_hw()
381 ice_flow_rem_entry(hw, blk, prof->entry_h[j][tun]); in ice_fdir_erase_flow_from_hw()
382 prof->entry_h[j][tun] = 0; in ice_fdir_erase_flow_from_hw()
400 int tun, i; in ice_fdir_rem_flow() local
409 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_rem_flow()
410 if (!prof->fdir_seg[tun]) in ice_fdir_rem_flow()
412 devm_kfree(ice_hw_to_dev(hw), prof->fdir_seg[tun]); in ice_fdir_rem_flow()
413 prof->fdir_seg[tun] = NULL; in ice_fdir_rem_flow()
440 int tun; in ice_fdir_replay_flows() local
444 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_replay_flows()
451 prof->fdir_seg[tun], TNL_SEG_CNT(tun), in ice_fdir_replay_flows()
470 prof->prof_id[tun] = hw_prof->id; in ice_fdir_replay_flows()
471 prof->entry_h[j][tun] = entry_h; in ice_fdir_replay_flows()
633 enum ice_fltr_ptype flow, enum ice_fd_hw_seg tun) in ice_fdir_set_hw_fltr_rule() argument
660 old_seg = hw_prof->fdir_seg[tun]; in ice_fdir_set_hw_fltr_rule()
692 TNL_SEG_CNT(tun), false, &prof); in ice_fdir_set_hw_fltr_rule()
706 hw_prof->fdir_seg[tun] = seg; in ice_fdir_set_hw_fltr_rule()
707 hw_prof->prof_id[tun] = prof->id; in ice_fdir_set_hw_fltr_rule()
708 hw_prof->entry_h[0][tun] = entry1_h; in ice_fdir_set_hw_fltr_rule()
709 hw_prof->entry_h[1][tun] = entry2_h; in ice_fdir_set_hw_fltr_rule()
736 hw_prof->entry_h[vsi_idx][tun] = entry1_h; in ice_fdir_set_hw_fltr_rule()
743 hw_prof->fdir_seg[tun] = NULL; in ice_fdir_set_hw_fltr_rule()
759 if (!hw_prof->entry_h[idx][tun]) in ice_fdir_set_hw_fltr_rule()
762 ice_flow_rem_entry(hw, ICE_BLK_FD, hw_prof->entry_h[idx][tun]); in ice_fdir_set_hw_fltr_rule()
763 hw_prof->entry_h[idx][tun] = 0; in ice_fdir_set_hw_fltr_rule()
1567 int tun; in ice_fdir_write_all_fltr() local
1569 for (tun = 0; tun < ICE_FD_HW_SEG_MAX; tun++) { in ice_fdir_write_all_fltr()
1570 bool is_tun = tun == ICE_FD_HW_SEG_TUN; in ice_fdir_write_all_fltr()