[PATCH librdmacm] udaddy/ucmatose: allow easy setting of tos in hex

2011-12-11 Thread Or Gerlitz
Under IBoE, the 3 MSBits of the TOS map to the SL, hence letting the user to specify them in hex makes the interface friendlier. Signed-off-by: Or Gerlitz --- examples/cmatose.c |2 +- examples/udaddy.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cmato

[PATCH libmlx4 4/4] fix SL to 8021q priority-bits settings under IBoE

2011-12-11 Thread Or Gerlitz
Under IBoE, SLs 0-7 are mapped to Ethernet 8021q user priority bits (pbits) which are part of the VLAN tag, SLs 8-15 are reserved. Under Ethernet, the ConnectX firmware treats (decode/encode) the four bit SL field in various constructs such as QPC / UD WQE / CQE as PPP0 and not as 0PPP. This corre

[PATCH libmlx4 3/4] add link layer field to mlx4 QPs

2011-12-11 Thread Or Gerlitz
The link layer field is to be used in few flows among them fast path operations such as CQ polling. Signed-off-by: Or Gerlitz --- src/mlx4.h |2 ++ src/verbs.c |8 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/mlx4.h b/src/mlx4.h index 0ad838d..f92611f 100

[PATCH libmlx4 2/4] use Ethernet 8021q vlans related fields with CQE

2011-12-11 Thread Or Gerlitz
When running IBoE traffic, the hardware places Ethernet fields into the CQE. This patch enhances the code to include the ones related to vlans. Signed-off-by: Or Gerlitz --- src/cq.c | 25 ++--- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/cq.c b/src

[PATCH 1/4] ib/mlx4: fix SL to 8021q priority-bits settings under IBoE

2011-12-11 Thread Or Gerlitz
Under IBoE, SLs 0-7 are mapped to Ethernet 8021q user priority bits (pbits) which are part of the VLAN tag, SLs 8-15 are reserved. Under Ethernet, the ConnectX firmware treats (decode/encode) the four bit SL field in various constructs such as QPC / UD WQE / CQE as PPP0 and not as 0PPP. This corre

[PATCH 0/4] ib/mlx4: fix 8021q vlan priority-bits used under IBoE

2011-12-11 Thread Or Gerlitz
This series deals with fixes related to Ethernet 8021q vlan priority-bits used by mlx4 code under IBoE. It is made of one kernel/mlx4_ib patch and three user-space/libmlx4 patches. This series makes the IBoE code to follow IBTA's IBoE Annex, section A16.8.1 "SL, VL MANAGEMENT" - and map SLs 0-7 to