Lines Matching refs:tun_seg
851 struct ice_flow_seg_info *seg, *tun_seg; in ice_create_init_fdir_rule() local
865 tun_seg = devm_kcalloc(dev, ICE_FD_HW_SEG_MAX, sizeof(*tun_seg), in ice_create_init_fdir_rule()
867 if (!tun_seg) { in ice_create_init_fdir_rule()
896 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_create_init_fdir_rule()
897 ret = ice_fdir_set_hw_fltr_rule(pf, tun_seg, flow, ICE_FD_HW_SEG_TUN); in ice_create_init_fdir_rule()
902 devm_kfree(dev, tun_seg); in ice_create_init_fdir_rule()
907 devm_kfree(dev, tun_seg); in ice_create_init_fdir_rule()
1332 struct ice_flow_seg_info *seg, *tun_seg; in ice_cfg_fdir_xtrct_seq() local
1343 tun_seg = devm_kcalloc(dev, ICE_FD_HW_SEG_MAX, sizeof(*tun_seg), in ice_cfg_fdir_xtrct_seq()
1345 if (!tun_seg) { in ice_cfg_fdir_xtrct_seq()
1406 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1414 ice_flow_add_fld_raw(&tun_seg[1], user->flex_offset, in ice_cfg_fdir_xtrct_seq()
1437 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1438 ret = ice_fdir_set_hw_fltr_rule(pf, tun_seg, fltr_idx, in ice_cfg_fdir_xtrct_seq()
1442 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()
1446 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()
1452 devm_kfree(dev, tun_seg); in ice_cfg_fdir_xtrct_seq()