[ofa-general] [PATCH] libibmad: Add support for MulticastFDBTop
Hal Rosenstock
hnrose at comcast.net
Wed Aug 26 07:02:02 PDT 2009
Add support for SwitchInfo:MulticastFDBTop and
PortInfo:CapabilityMask.IsMulticastFDBTopSupported
Added by MgtWG errata #4505-4508
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h
index 3093fbd..5f3b52b 100644
--- a/libibmad/include/infiniband/mad.h
+++ b/libibmad/include/infiniband/mad.h
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2004-2007 Voltaire Inc. All rights reserved.
* Copyright (c) 2009 HNR Consulting. All rights reserved.
+ * Copyright (c) 2009 Mellanox Technologies LTD. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -400,6 +401,7 @@ enum MAD_FIELDS {
IB_SW_FILTER_RAW_INB_F,
IB_SW_FILTER_RAW_OUTB_F,
IB_SW_ENHANCED_PORT0_F,
+ IB_SW_MCAST_FDB_TOP_F,
IB_SW_LAST_F,
/*
diff --git a/libibmad/src/dump.c b/libibmad/src/dump.c
index 051c708..d97d359 100644
--- a/libibmad/src/dump.c
+++ b/libibmad/src/dump.c
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2004-2008 Voltaire Inc. All rights reserved.
* Copyright (c) 2007 Xsigo Systems Inc. All rights reserved.
+ * Copyright (c) 2009 Mellanox Technologies LTD. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -518,6 +519,8 @@ void mad_dump_portcapmask(char *buf, int bufsz, void *val, int valsz)
if (mask & (1 << 27))
s += sprintf(s,
"\t\t\t\tIsLinkSpeedWidthPairsTableSupported\n");
+ if (mask & (1 << 30))
+ s += sprintf(s, "\t\t\t\tIsMulticastFDBTopSupported\n");
if (s != buf)
*(--s) = 0;
diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c
index c8e4e79..5f30116 100644
--- a/libibmad/src/fields.c
+++ b/libibmad/src/fields.c
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2004-2007 Voltaire Inc. All rights reserved.
* Copyright (c) 2009 HNR Consulting. All rights reserved.
+ * Copyright (c) 2009 Mellanox Technologies LTD. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
@@ -206,6 +207,7 @@ static const ib_field_t ib_mad_f[] = {
{BITSOFFS(130, 1), "FilterRawInbound", mad_dump_uint},
{BITSOFFS(131, 1), "FilterRawOutbound", mad_dump_uint},
{BITSOFFS(132, 1), "EnhancedPort0", mad_dump_uint},
+ {BITSOFFS(144, 16), "MulticastFDBTop", mad_dump_hex},
{0, 0}, /* IB_SW_LAST_F */
/*
More information about the general
mailing list