Lines Matching refs:seg

621 ice_fdir_set_hw_fltr_rule(struct ice_pf *pf, struct ice_flow_seg_info *seg,  in ice_fdir_set_hw_fltr_rule()  argument
656 if (!memcmp(old_seg, seg, sizeof(*seg))) in ice_fdir_set_hw_fltr_rule()
682 err = ice_flow_add_prof(hw, ICE_BLK_FD, ICE_FLOW_RX, prof_id, seg, in ice_fdir_set_hw_fltr_rule()
688 seg, &entry1_h); in ice_fdir_set_hw_fltr_rule()
693 seg, &entry2_h); in ice_fdir_set_hw_fltr_rule()
697 hw_prof->fdir_seg[tun] = seg; in ice_fdir_set_hw_fltr_rule()
716 ICE_FLOW_PRIO_NORMAL, seg, in ice_fdir_set_hw_fltr_rule()
781 ice_set_init_fdir_seg(struct ice_flow_seg_info *seg, in ice_set_init_fdir_seg() argument
787 if (!seg) in ice_set_init_fdir_seg()
810 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
813 ice_flow_set_fld(seg, src_addr, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg()
817 ice_flow_set_fld(seg, dst_addr, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg()
821 ice_flow_set_fld(seg, src_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg()
825 ice_flow_set_fld(seg, dst_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_init_fdir_seg()
841 struct ice_flow_seg_info *seg, *tun_seg; in ice_create_init_fdir_rule() local
851 seg = devm_kzalloc(dev, sizeof(*seg), GFP_KERNEL); in ice_create_init_fdir_rule()
852 if (!seg) in ice_create_init_fdir_rule()
858 devm_kfree(dev, seg); in ice_create_init_fdir_rule()
863 ret = ice_set_init_fdir_seg(seg, ICE_FLOW_SEG_HDR_IPV4, in ice_create_init_fdir_rule()
866 ret = ice_set_init_fdir_seg(seg, ICE_FLOW_SEG_HDR_IPV4, in ice_create_init_fdir_rule()
869 ret = ice_set_init_fdir_seg(seg, ICE_FLOW_SEG_HDR_IPV6, in ice_create_init_fdir_rule()
872 ret = ice_set_init_fdir_seg(seg, ICE_FLOW_SEG_HDR_IPV6, in ice_create_init_fdir_rule()
880 ret = ice_fdir_set_hw_fltr_rule(pf, seg, flow, ICE_FD_HW_SEG_NON_TUN); in ice_create_init_fdir_rule()
886 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_create_init_fdir_rule()
898 devm_kfree(dev, seg); in ice_create_init_fdir_rule()
915 ice_set_fdir_ip4_seg(struct ice_flow_seg_info *seg, in ice_set_fdir_ip4_seg() argument
944 ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_IPV4 | l4_proto); in ice_set_fdir_ip4_seg()
948 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV4_SA, in ice_set_fdir_ip4_seg()
958 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV4_DA, in ice_set_fdir_ip4_seg()
968 ice_flow_set_fld(seg, src_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_fdir_ip4_seg()
978 ice_flow_set_fld(seg, dst_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_fdir_ip4_seg()
1000 ice_set_fdir_ip4_usr_seg(struct ice_flow_seg_info *seg, in ice_set_fdir_ip4_usr_seg() argument
1019 ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_IPV4); in ice_set_fdir_ip4_usr_seg()
1023 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV4_SA, in ice_set_fdir_ip4_usr_seg()
1033 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV4_DA, in ice_set_fdir_ip4_usr_seg()
1056 ice_set_fdir_ip6_seg(struct ice_flow_seg_info *seg, in ice_set_fdir_ip6_seg() argument
1088 ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_IPV6 | l4_proto); in ice_set_fdir_ip6_seg()
1092 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV6_SA, in ice_set_fdir_ip6_seg()
1103 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV6_DA, in ice_set_fdir_ip6_seg()
1114 ice_flow_set_fld(seg, src_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_fdir_ip6_seg()
1124 ice_flow_set_fld(seg, dst_port, ICE_FLOW_FLD_OFF_INVAL, in ice_set_fdir_ip6_seg()
1146 ice_set_fdir_ip6_usr_seg(struct ice_flow_seg_info *seg, in ice_set_fdir_ip6_usr_seg() argument
1167 ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_IPV6); in ice_set_fdir_ip6_usr_seg()
1171 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV6_SA, in ice_set_fdir_ip6_usr_seg()
1182 ice_flow_set_fld(seg, ICE_FLOW_FIELD_IDX_IPV6_DA, in ice_set_fdir_ip6_usr_seg()
1206 struct ice_flow_seg_info *seg, *tun_seg; in ice_cfg_fdir_xtrct_seq() local
1213 seg = devm_kzalloc(dev, sizeof(*seg), GFP_KERNEL); in ice_cfg_fdir_xtrct_seq()
1214 if (!seg) in ice_cfg_fdir_xtrct_seq()
1220 devm_kfree(dev, seg); in ice_cfg_fdir_xtrct_seq()
1226 ret = ice_set_fdir_ip4_seg(seg, &fsp->m_u.tcp_ip4_spec, in ice_cfg_fdir_xtrct_seq()
1231 ret = ice_set_fdir_ip4_seg(seg, &fsp->m_u.tcp_ip4_spec, in ice_cfg_fdir_xtrct_seq()
1236 ret = ice_set_fdir_ip4_seg(seg, &fsp->m_u.tcp_ip4_spec, in ice_cfg_fdir_xtrct_seq()
1241 ret = ice_set_fdir_ip4_usr_seg(seg, &fsp->m_u.usr_ip4_spec, in ice_cfg_fdir_xtrct_seq()
1245 ret = ice_set_fdir_ip6_seg(seg, &fsp->m_u.tcp_ip6_spec, in ice_cfg_fdir_xtrct_seq()
1250 ret = ice_set_fdir_ip6_seg(seg, &fsp->m_u.tcp_ip6_spec, in ice_cfg_fdir_xtrct_seq()
1255 ret = ice_set_fdir_ip6_seg(seg, &fsp->m_u.tcp_ip6_spec, in ice_cfg_fdir_xtrct_seq()
1260 ret = ice_set_fdir_ip6_usr_seg(seg, &fsp->m_u.usr_ip6_spec, in ice_cfg_fdir_xtrct_seq()
1270 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1274 ice_flow_add_fld_raw(seg, user->flex_offset, in ice_cfg_fdir_xtrct_seq()
1289 ret = ice_fdir_set_hw_fltr_rule(pf, seg, fltr_idx, in ice_cfg_fdir_xtrct_seq()
1301 memcpy(&tun_seg[1], seg, sizeof(*seg)); in ice_cfg_fdir_xtrct_seq()
1317 devm_kfree(dev, seg); in ice_cfg_fdir_xtrct_seq()