aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-01-19 10:19:33 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-01-19 10:19:33 +0000
commit636d1fec4d38b6a5e3e084aaf07ea3e4cb2cc254 (patch)
treebb92a95db99767b299c3307d0094031dc667494c /sys
parent1558d49bb146956e99190fc4d4f05e30b564ee7d (diff)
downloadsrc-636d1fec4d38b6a5e3e084aaf07ea3e4cb2cc254.tar.gz
src-636d1fec4d38b6a5e3e084aaf07ea3e4cb2cc254.zip
Add clarifying comment about CQE zipping.
Reviewed by: gnn Sponsored by: Mellanox Technologies MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4940
Notes
Notes: svn path=/head/; revision=294318
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mlx5/mlx5_en/mlx5_en_rx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
index 3dfd54a7b1a6..48339be526bd 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
@@ -270,6 +270,11 @@ mlx5e_decompress_cqe(struct mlx5e_cq *cq, struct mlx5_cqe64 *title,
struct mlx5_mini_cqe8 *mini,
u16 wqe_counter, int i)
{
+ /*
+ * NOTE: The fields which are not set here are copied from the
+ * initial and common title. See memcpy() in
+ * mlx5e_write_cqe_slot().
+ */
title->byte_cnt = mini->byte_cnt;
title->wqe_counter = cpu_to_be16((wqe_counter + i) & cq->wq.sz_m1);
title->check_sum = mini->checksum;