[PATCH V4 libmlx4] Infra-structure changes to support verbs extensions

2012-10-14 Thread Yishai Hadas
Signed-off-by: Yishai Hadas yish...@mellanox.com Signed-off-by: Tzahi Oved tza...@mellanox.com --- changes from V3: Use mlx4_device to wrap verbs_device instead of mlx4_device_ex Use calloc instead of malloc as part of struct mlx4_device allocation - 2 changes below are based on Jason's comment

[Patch libibverbs 0/5] Minor updates

2012-10-14 Thread Doug Ledford
This is a short series of fixes for minor issues. The most important being a memcpy buffer overrun on ppc arch for the compatibility wrapper. The rest are usability fixes for the example programs. Doug Ledford (5): Add an error when the user specifies an invalid port Don't allow port == 0 as

[Patch libibverbs 1/5] Add an error when the user specifies an invalid port

2012-10-14 Thread Doug Ledford
Signed-off-by: Doug Ledford dledf...@redhat.com --- examples/devinfo.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/examples/devinfo.c b/examples/devinfo.c index 7dc0463..b1a3b2e 100644 --- a/examples/devinfo.c +++ b/examples/devinfo.c @@ -218,10 +218,16 @@

[Patch libibverbs 4/5] Don't print link phys state on iWARP

2012-10-14 Thread Doug Ledford
The physical link state on iWARP transports has no meaning, so don't print it out at all. Signed-off-by: Doug Ledford dledf...@redhat.com --- examples/devinfo.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/devinfo.c b/examples/devinfo.c index

[Patch libibverbs 3/5] Fix the compatibility wrapper on ppc

2012-10-14 Thread Doug Ledford
The ppc arch packs the work request struct 1.0 in such a way that a straight memcpy won't work. Instead, break the copy out into chunks whenever the sizes don't match for given portions of the struct. Found by built in gcc memcpy buffer overflow checks. Help on the right fix provided by Jakub

[Patch libibverbs 2/5] Don't allow port == 0 as an option

2012-10-14 Thread Doug Ledford
We special case port == 0 to mean all ports, and it's the default, so if a user passes in 0, they likely meant 1 instead. Throw an error because they probably didn't mean to specify the default behavior of scan all ports. Path of least surprise and all that. Signed-off-by: Doug Ledford

[Patch libibverbs 5/5] Don't try to send UD messages larger than MTU

2012-10-14 Thread Doug Ledford
The UD protocol doesn't support message sizes larger than the path MTU. We don't go so far as to check path MTU, but we do check port MTU. This prevents failed runs of the pingpong_ud program with large MTUs. Signed-off-by: Doug Ledford dledf...@redhat.com --- examples/ud_pingpong.c | 14