Lines Matching refs:hdrs
633 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK && in ice_flow_val_hdrs()
634 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs()
638 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK && in ice_flow_val_hdrs()
639 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs()
667 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz()
671 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz()
673 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz()
675 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ARP) in ice_flow_calc_seg_sz()
677 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK) in ice_flow_calc_seg_sz()
682 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ICMP) in ice_flow_calc_seg_sz()
684 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_TCP) in ice_flow_calc_seg_sz()
686 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_UDP) in ice_flow_calc_seg_sz()
688 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_SCTP) in ice_flow_calc_seg_sz()
712 u32 hdrs; in ice_flow_proc_seg_hdrs() local
714 hdrs = prof->segs[i].hdrs; in ice_flow_proc_seg_hdrs()
716 if (hdrs & ICE_FLOW_SEG_HDR_ETH) { in ice_flow_proc_seg_hdrs()
723 if (i && hdrs & ICE_FLOW_SEG_HDR_VLAN) { in ice_flow_proc_seg_hdrs()
729 if (!i && hdrs & ICE_FLOW_SEG_HDR_ARP) { in ice_flow_proc_seg_hdrs()
735 if ((hdrs & ICE_FLOW_SEG_HDR_IPV4) && in ice_flow_proc_seg_hdrs()
736 (hdrs & ICE_FLOW_SEG_HDR_IPV_OTHER)) { in ice_flow_proc_seg_hdrs()
741 } else if ((hdrs & ICE_FLOW_SEG_HDR_IPV6) && in ice_flow_proc_seg_hdrs()
742 (hdrs & ICE_FLOW_SEG_HDR_IPV_OTHER)) { in ice_flow_proc_seg_hdrs()
747 } else if ((hdrs & ICE_FLOW_SEG_HDR_IPV4) && in ice_flow_proc_seg_hdrs()
748 !(hdrs & ICE_FLOW_SEG_HDRS_L4_MASK_NO_OTHER)) { in ice_flow_proc_seg_hdrs()
753 } else if (hdrs & ICE_FLOW_SEG_HDR_IPV4) { in ice_flow_proc_seg_hdrs()
758 } else if ((hdrs & ICE_FLOW_SEG_HDR_IPV6) && in ice_flow_proc_seg_hdrs()
759 !(hdrs & ICE_FLOW_SEG_HDRS_L4_MASK_NO_OTHER)) { in ice_flow_proc_seg_hdrs()
764 } else if (hdrs & ICE_FLOW_SEG_HDR_IPV6) { in ice_flow_proc_seg_hdrs()
771 if (hdrs & ICE_FLOW_SEG_HDR_ETH_NON_IP) { in ice_flow_proc_seg_hdrs()
775 } else if (hdrs & ICE_FLOW_SEG_HDR_PPPOE) { in ice_flow_proc_seg_hdrs()
785 if (hdrs & ICE_FLOW_SEG_HDR_UDP) { in ice_flow_proc_seg_hdrs()
789 } else if (hdrs & ICE_FLOW_SEG_HDR_TCP) { in ice_flow_proc_seg_hdrs()
793 } else if (hdrs & ICE_FLOW_SEG_HDR_SCTP) { in ice_flow_proc_seg_hdrs()
799 if (hdrs & ICE_FLOW_SEG_HDR_ICMP) { in ice_flow_proc_seg_hdrs()
804 } else if (hdrs & ICE_FLOW_SEG_HDR_GRE) { in ice_flow_proc_seg_hdrs()
810 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPC) { in ice_flow_proc_seg_hdrs()
814 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPC_TEID) { in ice_flow_proc_seg_hdrs()
818 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_DWN) { in ice_flow_proc_seg_hdrs()
826 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_UP) { in ice_flow_proc_seg_hdrs()
834 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_EH) { in ice_flow_proc_seg_hdrs()
842 } else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_IP) { in ice_flow_proc_seg_hdrs()
846 } else if (hdrs & ICE_FLOW_SEG_HDR_L2TPV3) { in ice_flow_proc_seg_hdrs()
850 } else if (hdrs & ICE_FLOW_SEG_HDR_ESP) { in ice_flow_proc_seg_hdrs()
854 } else if (hdrs & ICE_FLOW_SEG_HDR_AH) { in ice_flow_proc_seg_hdrs()
858 } else if (hdrs & ICE_FLOW_SEG_HDR_NAT_T_ESP) { in ice_flow_proc_seg_hdrs()
864 if (hdrs & ICE_FLOW_SEG_HDR_PFCP) { in ice_flow_proc_seg_hdrs()
865 if (hdrs & ICE_FLOW_SEG_HDR_PFCP_NODE) in ice_flow_proc_seg_hdrs()
1025 prot_id = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) ? in ice_flow_xtract_fld()
1272 if (segs[i].hdrs != p->segs[i].hdrs || in ice_flow_find_prof_conds()
1900 if (segs->hdrs & ~ICE_FLOW_RSS_SEG_HDR_VAL_MASKS & in ice_flow_set_rss_seg_info()
1904 val = (u64)(segs->hdrs & ICE_FLOW_RSS_SEG_HDR_L3_MASKS); in ice_flow_set_rss_seg_info()
1908 val = (u64)(segs->hdrs & ICE_FLOW_RSS_SEG_HDR_L4_MASKS); in ice_flow_set_rss_seg_info()
1997 r->packet_hdr == prof->segs[prof->segs_cnt - 1].hdrs) { in ice_rem_rss_list()
2022 r->packet_hdr == prof->segs[prof->segs_cnt - 1].hdrs) { in ice_add_rss_list()
2033 rss_cfg->packet_hdr = prof->segs[prof->segs_cnt - 1].hdrs; in ice_add_rss_list()
2144 segs[segs_cnt - 1].hdrs, in ice_add_rss_cfg_sync()
2455 u64 ice_get_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u32 hdrs) in ice_get_rss_cfg() argument
2461 if (hdrs == ICE_FLOW_SEG_HDR_NONE || !ice_is_vsi_valid(hw, vsi_handle)) in ice_get_rss_cfg()
2467 r->packet_hdr == hdrs) { in ice_get_rss_cfg()