Hi Yevgeny, looking on commit f780a9f "mlx4_core: Add ethernet fields
to CQE struct" I see the following two changes:

@@ -692,14 +692,13 @@ repoll:
-               wc->sl             = cqe->sl >> 4;
+               wc->sl             = be16_to_cpu(cqe->sl_vid >> 12);

I wasn't sure if/why a conversion from network order to host order is
neeed here, can you clarify that?

Or.


@@ -39,17 +39,18 @@
 struct mlx4_cqe {
-       __be32                  my_qpn;
+       __be32                  vlan_my_qpn;
-       u8                      sl;
-       u8                      reserved1;
+       __be16                  sl_vid;


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to