Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mlx5/device.h
Show First 20 Lines • Show All 613 Lines • ▼ Show 20 Lines | struct mlx5_cqe64 { | ||||
__be32 byte_cnt; | __be32 byte_cnt; | ||||
__be64 timestamp; | __be64 timestamp; | ||||
__be32 sop_drop_qpn; | __be32 sop_drop_qpn; | ||||
__be16 wqe_counter; | __be16 wqe_counter; | ||||
u8 signature; | u8 signature; | ||||
u8 op_own; | u8 op_own; | ||||
}; | }; | ||||
#define MLX5_CQE_TSTMP_PTP (1ULL << 63) | |||||
static inline bool get_cqe_lro_timestamp_valid(struct mlx5_cqe64 *cqe) | static inline bool get_cqe_lro_timestamp_valid(struct mlx5_cqe64 *cqe) | ||||
{ | { | ||||
return (cqe->lro_tcppsh_abort_dupack >> 7) & 1; | return (cqe->lro_tcppsh_abort_dupack >> 7) & 1; | ||||
} | } | ||||
static inline bool get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) | static inline bool get_cqe_lro_tcppsh(struct mlx5_cqe64 *cqe) | ||||
{ | { | ||||
return (cqe->lro_tcppsh_abort_dupack >> 6) & 1; | return (cqe->lro_tcppsh_abort_dupack >> 6) & 1; | ||||
▲ Show 20 Lines • Show All 815 Lines • Show Last 20 Lines |