Lines Matching refs:cqe
694 static inline bool get_cqe_lro_timestamp_valid(struct mlx5_cqe64 *cqe)
696 return (cqe->lro_tcppsh_abort_dupack >> 7) & 1;
699 static inline bool get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe)
701 return (cqe->lro_tcppsh_abort_dupack >> 6) & 1;
704 static inline u8 get_cqe_l4_hdr_type(struct mlx5_cqe64 *cqe)
706 return (cqe->l4_hdr_type_etc >> 4) & 0x7;
709 static inline u16 get_cqe_vlan(struct mlx5_cqe64 *cqe)
711 return be16_to_cpu(cqe->vlan_info) & 0xfff;
714 static inline void get_cqe_smac(struct mlx5_cqe64 *cqe, u8 *smac)
716 memcpy(smac, &cqe->rss_hash_type , 4);
717 memcpy(smac + 4, &cqe->slid , 2);
720 static inline bool cqe_has_vlan(struct mlx5_cqe64 *cqe)
722 return cqe->l4_hdr_type_etc & 0x1;
725 static inline bool cqe_is_tunneled(struct mlx5_cqe64 *cqe)
727 return cqe->tunneled_etc & 0x1;
1244 static inline int mlx5_get_cqe_format(const struct mlx5_cqe64 *cqe)
1246 return (cqe->op_own & MLX5E_CQE_FORMAT_MASK) >> 2;