[ofa-general][PATCH] mlx4_core: Add Vlan tag field to control segment

Yevgeny Petrilin yevgenyp at mellanox.co.il
Thu Jul 24 09:27:02 PDT 2008


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 <yevgenyp at mellanox.co.il>
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 <yevgenyp at mellanox.co.il>
---
 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




More information about the general mailing list