Hello Roland,

This fix is according to ConnectX PRM and required for Ethernet driver.


>From bcb7beea7733b6b13bada8bc4009dabd8a833131 Mon Sep 17 00:00:00 2001
From: Yevgeny Petrilin <[EMAIL PROTECTED]>
Date: Wed, 23 Jul 2008 11:44:56 +0300
Subject: [PATCH] mlx4_core: Vlan tag in wqe control segment.

Added fields for vlan tag an a flag for insert Vlan to the packet.
Those fields are in use for Ethernet packets.

Signed-off-by: Yevgeny Petrilin <[EMAIL PROTECTED]>
---
 include/linux/mlx4/qp.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h
index f02e9ed..5ab9c3e 100644
--- a/include/linux/mlx4/qp.h
+++ b/include/linux/mlx4/qp.h
@@ -168,7 +168,9 @@ enum {

 struct mlx4_wqe_ctrl_seg {
        __be32                  owner_opcode;
-       u8                      reserved2[3];
+       __be16                  vlan_tag;
+#define MLX4_WQE_CTRL_INS_VLAN 0x40
+       u8                      ins_vlan;
        u8                      fence_size;
        /*
         * High 24 bits are SRC remote buffer; low 8 bits are flags:
-- 
1.5.3.7

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to