for use in mtu validation by SA
Signed-off-by: Hal Rosenstock
---
include/opensm/osm_helper.h | 24
opensm/libopensm.map|1 +
opensm/osm_helper.c |7 +++
3 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/include/opensm/osm_hel
On Tue, Oct 4, 2011 at 3:53 PM, Hal Rosenstock 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 follows:
return (