Lines Matching full:cqe
845 static inline u8 mlx5_get_cqe_format(struct mlx5_cqe64 *cqe) in mlx5_get_cqe_format() argument
847 return (cqe->op_own >> 2) & 0x3; in mlx5_get_cqe_format()
850 static inline u8 get_cqe_opcode(struct mlx5_cqe64 *cqe) in get_cqe_opcode() argument
852 return cqe->op_own >> 4; in get_cqe_opcode()
855 static inline u8 get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) in get_cqe_lro_tcppsh() argument
857 return (cqe->lro_tcppsh_abort_dupack >> 6) & 1; in get_cqe_lro_tcppsh()
860 static inline u8 get_cqe_l4_hdr_type(struct mlx5_cqe64 *cqe) in get_cqe_l4_hdr_type() argument
862 return (cqe->l4_l3_hdr_type >> 4) & 0x7; in get_cqe_l4_hdr_type()
865 static inline u8 get_cqe_l3_hdr_type(struct mlx5_cqe64 *cqe) in get_cqe_l3_hdr_type() argument
867 return (cqe->l4_l3_hdr_type >> 2) & 0x3; in get_cqe_l3_hdr_type()
870 static inline bool cqe_is_tunneled(struct mlx5_cqe64 *cqe) in cqe_is_tunneled() argument
872 return cqe->tls_outer_l3_tunneled & 0x1; in cqe_is_tunneled()
875 static inline u8 get_cqe_tls_offload(struct mlx5_cqe64 *cqe) in get_cqe_tls_offload() argument
877 return (cqe->tls_outer_l3_tunneled >> 3) & 0x3; in get_cqe_tls_offload()
880 static inline bool cqe_has_vlan(struct mlx5_cqe64 *cqe) in cqe_has_vlan() argument
882 return cqe->l4_l3_hdr_type & 0x1; in cqe_has_vlan()
885 static inline u64 get_cqe_ts(struct mlx5_cqe64 *cqe) in get_cqe_ts() argument
889 hi = be32_to_cpu(cqe->timestamp_h); in get_cqe_ts()
890 lo = be32_to_cpu(cqe->timestamp_l); in get_cqe_ts()
903 static inline u16 mpwrq_get_cqe_byte_cnt(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_byte_cnt() argument
905 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_byte_cnt()
915 static inline u16 mpwrq_get_cqe_consumed_strides(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_consumed_strides() argument
917 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_get_cqe_consumed_strides()
922 static inline bool mpwrq_is_filler_cqe(struct mlx5_cqe64 *cqe) in mpwrq_is_filler_cqe() argument
924 struct mpwrq_cqe_bc *bc = (struct mpwrq_cqe_bc *)&cqe->byte_cnt; in mpwrq_is_filler_cqe()
929 static inline u16 mpwrq_get_cqe_stride_index(struct mlx5_cqe64 *cqe) in mpwrq_get_cqe_stride_index() argument
931 return be16_to_cpu(cqe->wqe_counter); in mpwrq_get_cqe_stride_index()
944 /* cqe->rss_hash_type[3:2] - IP destination selected for hash
948 /* cqe->rss_hash_type[7:6] - L4 destination selected for hash