Lines Matching refs:tun_seg
841 struct ice_flow_seg_info *seg, *tun_seg; in ice_create_init_fdir_rule() local
855 tun_seg = devm_kcalloc(dev, ICE_FD_HW_SEG_MAX, sizeof(*tun_seg), in ice_create_init_fdir_rule()
857 if (!tun_seg) { in ice_create_init_fdir_rule()
886 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_create_init_fdir_rule()
887 ret = ice_fdir_set_hw_fltr_rule(pf, tun_seg, flow, ICE_FD_HW_SEG_TUN); in ice_create_init_fdir_rule()
892 devm_kfree(dev, tun_seg); in ice_create_init_fdir_rule()
897 devm_kfree(dev, tun_seg); in ice_create_init_fdir_rule()
1206 struct ice_flow_seg_info *seg, *tun_seg; in ice_cfg_fdir_xtrct_seq() local
1217 tun_seg = devm_kcalloc(dev, ICE_FD_HW_SEG_MAX, sizeof(*tun_seg), in ice_cfg_fdir_xtrct_seq()
1219 if (!tun_seg) { in ice_cfg_fdir_xtrct_seq()
1270 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1278 ice_flow_add_fld_raw(&tun_seg[1], user->flex_offset, in ice_cfg_fdir_xtrct_seq()
1296 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1297 ret = ice_fdir_set_hw_fltr_rule(pf, tun_seg, fltr_idx, in ice_cfg_fdir_xtrct_seq()
1301 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()
1305 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()
1316 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()