Lines Matching full:cqe
907 static inline u8 mlx5_get_cqe_format(struct mlx5_cqe64 *cqe) in mlx5_get_cqe_format() argument
909 return (cqe->op_own >> 2) & 0x3; in mlx5_get_cqe_format()
912 static inline u8 get_cqe_opcode(struct mlx5_cqe64 *cqe) in get_cqe_opcode() argument
914 return cqe->op_own >> 4; in get_cqe_opcode()
917 static inline u8 get_cqe_enhanced_num_mini_cqes(struct mlx5_cqe64 *cqe) in get_cqe_enhanced_num_mini_cqes() argument
920 return get_cqe_opcode(cqe) + 1; in get_cqe_enhanced_num_mini_cqes()
923 static inline u8 get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) in get_cqe_lro_tcppsh() argument
925 return (cqe->lro.tcppsh_abort_dupack >> 6) & 1; in get_cqe_lro_tcppsh()
928 static inline u8 get_cqe_l4_hdr_type(struct mlx5_cqe64 *cqe) in get_cqe_l4_hdr_type() argument
930 return (cqe->l4_l3_hdr_type >> 4) & 0x7; in get_cqe_l4_hdr_type()
933 static inline bool cqe_is_tunneled(struct mlx5_cqe64 *cqe) in cqe_is_tunneled() argument
935 return cqe->tls_outer_l3_tunneled & 0x1; in cqe_is_tunneled()
938 static inline u8 get_cqe_tls_offload(struct mlx5_cqe64 *cqe) in get_cqe_tls_offload() argument
940 return (cqe->tls_outer_l3_tunneled >> 3) & 0x3; in get_cqe_tls_offload()
943 static inline bool cqe_has_vlan(const struct mlx5_cqe64 *cqe) in cqe_has_vlan() argument
945 return cqe->l4_l3_hdr_type & 0x1; in cqe_has_vlan()
948 static inline u64 get_cqe_ts(struct mlx5_cqe64 *cqe) in get_cqe_ts() argument
952 hi = be32_to_cpu(cqe->timestamp_h); in get_cqe_ts()
953 lo = be32_to_cpu(cqe->timestamp_l); in get_cqe_ts()
958 static inline u16 get_cqe_flow_tag(struct mlx5_cqe64 *cqe) in get_cqe_flow_tag() argument
960 return be32_to_cpu(cqe->sop_drop_qpn) & 0xFFF; in get_cqe_flow_tag()
974 static inline u16 mpwrq_get_cqe_byte_cnt(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_byte_cnt() argument
976 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_byte_cnt()
986 static inline u16 mpwrq_get_cqe_consumed_strides(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_consumed_strides() argument
988 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_consumed_strides()
993 static inline bool mpwrq_is_filler_cqe(struct mlx5_cqe64 *cqe) in mpwrq_is_filler_cqe() argument
995 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_is_filler_cqe()
1000 static inline u16 mpwrq_get_cqe_stride_index(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_stride_index() argument
1002 return be16_to_cpu(cqe->wqe_counter); in mpwrq_get_cqe_stride_index()
1015 /* cqe->rss_hash_type[3:2] - IP destination selected for hash
1024 /* cqe->rss_hash_type[7:6] - L4 destination selected for hash