Re: [PATCH 1/4] opensm/osm_helper: Add ib_mtu_is_valid

2011-10-05 Thread Bart Van Assche
On Tue, Oct 4, 2011 at 3:53 PM, Hal Rosenstock h...@dev.mellanox.co.il wrote: +int ib_mtu_is_valid(IN const int mtu) +{ +       if (mtu IB_MIN_MTU || mtu IB_MAX_MTU) +               return 0; +       return 1; +} Not that it matters, but the above three lines can also be written as

[PATCH 1/4] opensm/osm_helper: Add ib_mtu_is_valid

2011-10-04 Thread Hal Rosenstock
for use in mtu validation by SA Signed-off-by: Hal Rosenstock h...@mellanox.com --- include/opensm/osm_helper.h | 24 opensm/libopensm.map|1 + opensm/osm_helper.c |7 +++ 3 files changed, 32 insertions(+), 0 deletions(-) diff --git