From patchwork Fri Mar 8 19:55:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10845369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C7084A0A for ; Fri, 8 Mar 2019 19:55:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24A1A2FE1E for ; Fri, 8 Mar 2019 19:55:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1939A2FF7A; Fri, 8 Mar 2019 19:55:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AA1A2FE1E for ; Fri, 8 Mar 2019 19:55:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbfCHTz3 (ORCPT ); Fri, 8 Mar 2019 14:55:29 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:36481 "EHLO mail-qk1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfCHTz2 (ORCPT ); Fri, 8 Mar 2019 14:55:28 -0500 Received: by mail-qk1-f175.google.com with SMTP id c2so11890363qkb.3 for ; Fri, 08 Mar 2019 11:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LZnP4x6BqSIaWQ2sn/BRAwOXVBnQXHatk14RtwI6zuo=; b=mpUqBQzV0zJvUtwaxgHW2HXLpi4lNYWgWj1EllUKec8XTP6WDwNKtvXCbIj+MoP8W+ TRXXnO+9TFsFIu4HAuTFTq0KQU3RsgWDBEGRQud4YXlKmWrP3UvEWmGhGHHy4/fH3djI tlrVAhAOuWKubBI+cGpH2FZgxlA0V1pE1ZM1uze6oDz4AJh2AAFC9/m+EtPcVEh2mbVE 5aDtdYQCGiZMXdfL2I/byTmFr0lipp8jIahueSTud0SCfxd2Tg4OAJ0jCxqEozOWUAHG gfP2yD3MPBVEpiIrbAsky95oxZkj1QG9YABpTvZTu0AGEc3oX7FWTkWVU1V3gliJBQgz ncDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LZnP4x6BqSIaWQ2sn/BRAwOXVBnQXHatk14RtwI6zuo=; b=pgcCYL62b9J45UnqhHcrtTmfACOxxmNpu2nCM6zJLZAB2ZznERXTbVk2hpKd7M1lAj yUCg9dmgGO4AGrPgJrIV6LOWTyv5KZA6bs3w7H4nGoC9fTGsu3WDWJdZPFYN94I1zwXD IMWo5C+cFLAsXr6/uf2xaIEr2RnFMIjrm/vP2noT0vIML/FSxu52f90DVkwtq0Zj/qcm mdEPyUzwHZlWTpGJFrQLcgS6OQIZ5i/TBFSakJ38qhk9O7jb4MYXjN7bj3SPNkZ9o+TB AzMIZFG6shy2OAExcsDm93H42izBMf9yVzNURHyITl5k9E4MPTifo0+chshpXLhaZW6j YZlg== X-Gm-Message-State: APjAAAXiCmETvI+VenaSaEoWfElC2DEiYXPQ19y71mjRyC1szNyw+IR7 w6CDdMsHmRwU0AloYNzC0N/gAGVOm0A47g== X-Google-Smtp-Source: APXvYqz+cw2nnbQSRvbZUY7G7kpMhiKgsvn4n2R70FU1O/EoqoQWgbU/arGSXbcoz9gQUCvywmUWvg== X-Received: by 2002:a37:a5cc:: with SMTP id o195mr6316223qke.250.1552074927111; Fri, 08 Mar 2019 11:55:27 -0800 (PST) Received: from ziepe.ca ([24.137.65.181]) by smtp.gmail.com with ESMTPSA id 50sm5346383qtr.96.2019.03.08.11.55.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 11:55:23 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1h2LaU-0000vM-8g; Fri, 08 Mar 2019 15:55:22 -0400 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe Subject: [PATCH ibdiags 04/14] libibmad: Use {} instead of {0} Date: Fri, 8 Mar 2019 15:55:05 -0400 Message-Id: <20190308195515.3408-5-jgg@ziepe.ca> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190308195515.3408-1-jgg@ziepe.ca> References: <20190308195515.3408-1-jgg@ziepe.ca> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Gunthorpe This is the style in rdma-core. Fixes the compiler warning: warning: missing initializer for field ‘name’ of ‘ib_field_t {aka const struct ib_field}’ [-Wmissing-field-initializers] Signed-off-by: Jason Gunthorpe --- libibmad/src/fields.c | 96 +++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c index 61fd540cd29510..1af7a6cfa17880 100644 --- a/libibmad/src/fields.c +++ b/libibmad/src/fields.c @@ -55,7 +55,7 @@ #define BE_TO_BITSOFFS(o, w) (((o) & ~31) | ((32 - ((o) & 31) - (w)))) static const ib_field_t ib_mad_f[] = { - {0, 0}, /* IB_NO_FIELD - reserved as invalid */ + {}, /* IB_NO_FIELD - reserved as invalid */ {0, 64, "GidPrefix", mad_dump_rhex}, {64, 64, "GidGuid", mad_dump_rhex}, @@ -108,7 +108,7 @@ static const ib_field_t ib_mad_f[] = { {56 * 8, (256 - 56) * 8, "SaData", mad_dump_hex}, /* bytes 64 - 127 */ - {0, 0}, /* IB_SM_DATA_F - reserved as invalid */ + {}, /* IB_SM_DATA_F - reserved as invalid */ /* bytes 64 - 256 */ {64 * 8, (256 - 64) * 8, "GsData", mad_dump_hex}, @@ -169,7 +169,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(428, 4), "OverrunErr", mad_dump_uint}, {BITSOFFS(432, 16), "MaxCreditHint", mad_dump_uint}, {BITSOFFS(456, 24), "RoundTrip", mad_dump_uint}, - {0, 0}, /* IB_PORT_LAST_F */ + {}, /* IB_PORT_LAST_F */ /* * NodeInfo fields @@ -186,7 +186,7 @@ static const ib_field_t ib_mad_f[] = { {256, 32, "Revision", mad_dump_hex}, {BITSOFFS(288, 8), "LocalPort", mad_dump_uint}, {BITSOFFS(296, 24), "VendorId", mad_dump_hex}, - {0, 0}, /* IB_NODE_LAST_F */ + {}, /* IB_NODE_LAST_F */ /* * SwitchInfo fields @@ -209,7 +209,7 @@ static const ib_field_t ib_mad_f[] = { {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 */ + {}, /* IB_SW_LAST_F */ /* * SwitchLinearForwardingTable fields @@ -264,7 +264,7 @@ static const ib_field_t ib_mad_f[] = { {256, 32, "PortXmitPkts", mad_dump_uint}, {288, 32, "PortRcvPkts", mad_dump_uint}, {320, 32, "PortXmitWait", mad_dump_uint}, - {0, 0}, /* IB_PC_LAST_F */ + {}, /* IB_PC_LAST_F */ /* * SMInfo @@ -374,7 +374,7 @@ static const ib_field_t ib_mad_f[] = { {384, 64, "PortUnicastRcvPkts", mad_dump_uint}, {448, 64, "PortMulticastXmitPkts", mad_dump_uint}, {512, 64, "PortMulticastRcvPkts", mad_dump_uint}, - {0, 0}, /* IB_PC_EXT_LAST_F */ + {}, /* IB_PC_EXT_LAST_F */ /* * GUIDInfo fields @@ -426,7 +426,7 @@ static const ib_field_t ib_mad_f[] = { {448, 32, "XmtDataSL13", mad_dump_uint}, {480, 32, "XmtDataSL14", mad_dump_uint}, {512, 32, "XmtDataSL15", mad_dump_uint}, - {0, 0}, /* IB_PC_XMT_DATA_SL_LAST_F */ + {}, /* IB_PC_XMT_DATA_SL_LAST_F */ /* * PortRcvDataSL fields @@ -447,7 +447,7 @@ static const ib_field_t ib_mad_f[] = { {448, 32, "RcvDataSL13", mad_dump_uint}, {480, 32, "RcvDataSL14", mad_dump_uint}, {512, 32, "RcvDataSL15", mad_dump_uint}, - {0, 0}, /* IB_PC_RCV_DATA_SL_LAST_F */ + {}, /* IB_PC_RCV_DATA_SL_LAST_F */ /* * PortXmitDiscardDetails fields @@ -456,7 +456,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(48, 16), "PortNeighborMTUDiscards", mad_dump_uint}, {BITSOFFS(64, 16), "PortSwLifetimeLimitDiscards", mad_dump_uint}, {BITSOFFS(80, 16), "PortSwHOQLifetimeLimitDiscards", mad_dump_uint}, - {0, 0}, /* IB_PC_XMT_DISC_LAST_F */ + {}, /* IB_PC_XMT_DISC_LAST_F */ /* * PortRcvErrorDetails fields @@ -467,7 +467,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(80, 16), "PortDLIDMappingErrors", mad_dump_uint}, {BITSOFFS(96, 16), "PortVLMappingErrors", mad_dump_uint}, {BITSOFFS(112, 16), "PortLoopingErrors", mad_dump_uint}, - {0, 0}, /* IB_PC_RCV_ERR_LAST_F */ + {}, /* IB_PC_RCV_ERR_LAST_F */ /* * PortSamplesControl fields @@ -502,7 +502,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(512, 16), "CounterSelect13", mad_dump_hex}, {BITSOFFS(528, 16), "CounterSelect14", mad_dump_hex}, {576, 64, "SamplesOnlyOptionMask", mad_dump_hex}, - {0, 0}, /* IB_PSC_LAST_F */ + {}, /* IB_PSC_LAST_F */ /* GUIDInfo fields */ {0, 64, "GUID0", mad_dump_hex}, @@ -533,7 +533,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(496, 4), "LinkSpeedExtActive", mad_dump_linkspeedext}, {BITSOFFS(500, 4), "LinkSpeedExtSupported", mad_dump_linkspeedextsup}, {BITSOFFS(507, 5), "LinkSpeedExtEnabled", mad_dump_linkspeedexten}, - {0, 0}, /* IB_PORT_LINK_SPEED_EXT_LAST_F */ + {}, /* IB_PORT_LINK_SPEED_EXT_LAST_F */ /* * PortExtendedSpeedsCounters fields @@ -578,21 +578,21 @@ static const ib_field_t ib_mad_f[] = { {1024, 32, "FECUncorrectableBlockCtrLane9", mad_dump_uint}, {1056, 32, "FECUncorrectableBlockCtrLane10", mad_dump_uint}, {1088, 32, "FECUncorrectableBlockCtrLane11", mad_dump_uint}, - {0, 0}, /* IB_PESC_LAST_F */ + {}, /* IB_PESC_LAST_F */ /* * PortOpRcvCounters fields */ {32, 32, "PortOpRcvPkts", mad_dump_uint}, {64, 32, "PortOpRcvData", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_OP_RCV_COUNTERS_LAST_F */ + {}, /* IB_PC_PORT_OP_RCV_COUNTERS_LAST_F */ /* * PortFlowCtlCounters fields */ {32, 32, "PortXmitFlowPkts", mad_dump_uint}, {64, 32, "PortRcvFlowPkts", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_FLOW_CTL_COUNTERS_LAST_F */ + {}, /* IB_PC_PORT_FLOW_CTL_COUNTERS_LAST_F */ /* * PortVLOpPackets fields @@ -613,7 +613,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(240, 16), "PortVLOpPackets13", mad_dump_uint}, {BITSOFFS(256, 16), "PortVLOpPackets14", mad_dump_uint}, {BITSOFFS(272, 16), "PortVLOpPackets15", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_VL_OP_PACKETS_LAST_F */ + {}, /* IB_PC_PORT_VL_OP_PACKETS_LAST_F */ /* * PortVLOpData fields @@ -634,7 +634,7 @@ static const ib_field_t ib_mad_f[] = { {448, 32, "PortVLOpData13", mad_dump_uint}, {480, 32, "PortVLOpData14", mad_dump_uint}, {512, 32, "PortVLOpData15", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_VL_OP_DATA_LAST_F */ + {}, /* IB_PC_PORT_VL_OP_DATA_LAST_F */ /* * PortVLXmitFlowCtlUpdateErrors fields @@ -655,7 +655,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(58, 2), "PortVLXmitFlowCtlUpdateErrors13", mad_dump_uint}, {BITSOFFS(60, 2), "PortVLXmitFlowCtlUpdateErrors14", mad_dump_uint}, {BITSOFFS(62, 2), "PortVLXmitFlowCtlUpdateErrors15", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS_LAST_F */ + {}, /* IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS_LAST_F */ /* * PortVLXmitWaitCounters fields @@ -676,7 +676,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(240, 16), "PortVLXmitWait13", mad_dump_uint}, {BITSOFFS(256, 16), "PortVLXmitWait14", mad_dump_uint}, {BITSOFFS(272, 16), "PortVLXmitWait15", mad_dump_uint}, - {0, 0}, /* IB_PC_PORT_VL_XMIT_WAIT_COUNTERS_LAST_F */ + {}, /* IB_PC_PORT_VL_XMIT_WAIT_COUNTERS_LAST_F */ /* * SwPortVLCongestion fields @@ -697,14 +697,14 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(240, 16), "SWPortVLCongestion13", mad_dump_uint}, {BITSOFFS(256, 16), "SWPortVLCongestion14", mad_dump_uint}, {BITSOFFS(272, 16), "SWPortVLCongestion15", mad_dump_uint}, - {0, 0}, /* IB_PC_SW_PORT_VL_CONGESTION_LAST_F */ + {}, /* IB_PC_SW_PORT_VL_CONGESTION_LAST_F */ /* * PortRcvConCtrl fields */ {32, 32, "PortPktRcvFECN", mad_dump_uint}, {64, 32, "PortPktRcvBECN", mad_dump_uint}, - {0, 0}, /* IB_PC_RCV_CON_CTRL_LAST_F */ + {}, /* IB_PC_RCV_CON_CTRL_LAST_F */ /* * PortSLRcvFECN fields @@ -725,7 +725,7 @@ static const ib_field_t ib_mad_f[] = { {448, 32, "PortSLRcvFECN13", mad_dump_uint}, {480, 32, "PortSLRcvFECN14", mad_dump_uint}, {512, 32, "PortSLRcvFECN15", mad_dump_uint}, - {0, 0}, /* IB_PC_SL_RCV_FECN_LAST_F */ + {}, /* IB_PC_SL_RCV_FECN_LAST_F */ /* * PortSLRcvBECN fields @@ -746,13 +746,13 @@ static const ib_field_t ib_mad_f[] = { {448, 32, "PortSLRcvBECN13", mad_dump_uint}, {480, 32, "PortSLRcvBECN14", mad_dump_uint}, {512, 32, "PortSLRcvBECN15", mad_dump_uint}, - {0, 0}, /* IB_PC_SL_RCV_BECN_LAST_F */ + {}, /* IB_PC_SL_RCV_BECN_LAST_F */ /* * PortXmitConCtrl fields */ {32, 32, "PortXmitTimeCong", mad_dump_uint}, - {0, 0}, /* IB_PC_XMIT_CON_CTRL_LAST_F */ + {}, /* IB_PC_XMIT_CON_CTRL_LAST_F */ /* * PortVLXmitTimeCong fields @@ -772,7 +772,7 @@ static const ib_field_t ib_mad_f[] = { {416, 32, "PortVLXmitTimeCong12", mad_dump_uint}, {448, 32, "PortVLXmitTimeCong13", mad_dump_uint}, {480, 32, "PortVLXmitTimeCong14", mad_dump_uint}, - {0, 0}, /* IB_PC_VL_XMIT_TIME_CONG_LAST_F */ + {}, /* IB_PC_VL_XMIT_TIME_CONG_LAST_F */ /* * Mellanox ExtendedPortInfo fields @@ -781,7 +781,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(56, 8), "LinkSpeedSupported", mad_dump_hex}, {BITSOFFS(88, 8), "LinkSpeedEnabled", mad_dump_hex}, {BITSOFFS(120, 8), "LinkSpeedActive", mad_dump_hex}, - {0, 0}, /* IB_MLNX_EXT_PORT_LAST_F */ + {}, /* IB_MLNX_EXT_PORT_LAST_F */ /* * Congestion Control Mad fields @@ -794,7 +794,7 @@ static const ib_field_t ib_mad_f[] = { */ {BITSOFFS(0, 16), "CongestionInfo", mad_dump_hex}, {BITSOFFS(16, 8), "ControlTableCap", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_INFO_LAST_F */ + {}, /* IB_CC_CONGESTION_INFO_LAST_F */ /* * CongestionKeyInfo fields @@ -803,14 +803,14 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(64, 1), "CC_KeyProtectBit", mad_dump_uint}, {BITSOFFS(80, 16), "CC_KeyLeasePeriod", mad_dump_uint}, {BITSOFFS(96, 16), "CC_KeyViolations", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_KEY_INFO_LAST_F */ + {}, /* IB_CC_CONGESTION_KEY_INFO_LAST_F */ /* * CongestionLog (common) fields */ {BITSOFFS(0, 8), "LogType", mad_dump_uint}, {BITSOFFS(8, 8), "CongestionFlags", mad_dump_hex}, - {0, 0}, /* IB_CC_CONGESTION_LOG_LAST_F */ + {}, /* IB_CC_CONGESTION_LOG_LAST_F */ /* * CongestionLog (Switch) fields @@ -818,7 +818,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(16, 16), "LogEventsCounter", mad_dump_uint}, {32, 32, "CurrentTimeStamp", mad_dump_uint}, {64, 256, "PortMap", mad_dump_array}, - {0, 0}, /* IB_CC_CONGESTION_LOG_SWITCH_LAST_F */ + {}, /* IB_CC_CONGESTION_LOG_SWITCH_LAST_F */ /* * CongestionLogEvent (Switch) fields @@ -827,7 +827,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(16, 16), "DLID", mad_dump_uint}, {BITSOFFS(32, 4), "SL", mad_dump_uint}, {64, 32, "Timestamp", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_LOG_ENTRY_SWITCH_LAST_F */ + {}, /* IB_CC_CONGESTION_LOG_ENTRY_SWITCH_LAST_F */ /* * CongestionLog (CA) fields @@ -838,7 +838,7 @@ static const ib_field_t ib_mad_f[] = { * word aligned. Assume will be aligned to offset 64 later. */ {BITSOFFS(64, 32), "CurrentTimeStamp", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_LOG_CA_LAST_F */ + {}, /* IB_CC_CONGESTION_LOG_CA_LAST_F */ /* * CongestionLogEvent (CA) fields @@ -850,7 +850,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(64, 16), "Local_LID_CN", mad_dump_uint}, {BITSOFFS(80, 16), "Remote_LID_CN_Entry", mad_dump_uint}, {BITSOFFS(96, 32), "Timestamp_CN_Entry", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_LOG_ENTRY_CA_LAST_F */ + {}, /* IB_CC_CONGESTION_LOG_ENTRY_CA_LAST_F */ /* * SwitchCongestionSetting fields @@ -863,7 +863,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(560, 4), "CS_Threshold", mad_dump_hex}, {BITSOFFS(576, 16), "CS_ReturnDelay", mad_dump_hex}, /* TODO: CCT dump */ {BITSOFFS(592, 16), "Marking_Rate", mad_dump_uint}, - {0, 0}, /* IB_CC_SWITCH_CONGESTION_SETTING_LAST_F */ + {}, /* IB_CC_SWITCH_CONGESTION_SETTING_LAST_F */ /* * SwitchPortCongestionSettingElement fields @@ -873,14 +873,14 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(4, 4), "Threshold", mad_dump_hex}, {BITSOFFS(8, 8), "Packet_Size", mad_dump_uint}, {BITSOFFS(16, 16), "Cong_Parm_Marking_Rate", mad_dump_uint}, - {0, 0}, /* IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_LAST_F */ + {}, /* IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_LAST_F */ /* * CACongestionSetting fields */ {BITSOFFS(0, 16), "Port_Control", mad_dump_hex}, {BITSOFFS(16, 16), "Control_Map", mad_dump_hex}, - {0, 0}, /* IB_CC_CA_CONGESTION_SETTING_LAST_F */ + {}, /* IB_CC_CA_CONGESTION_SETTING_LAST_F */ /* * CACongestionEntry fields @@ -889,26 +889,26 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(16, 8), "CCTI_Increase", mad_dump_uint}, {BITSOFFS(24, 8), "Trigger_Threshold", mad_dump_uint}, {BITSOFFS(32, 8), "CCTI_Min", mad_dump_uint}, - {0, 0}, /* IB_CC_CA_CONGESTION_SETTING_ENTRY_LAST_F */ + {}, /* IB_CC_CA_CONGESTION_SETTING_ENTRY_LAST_F */ /* * CongestionControlTable fields */ {BITSOFFS(0, 16), "CCTI_Limit", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_CONTROL_TABLE_LAST_F */ + {}, /* IB_CC_CONGESTION_CONTROL_TABLE_LAST_F */ /* * CongestionControlTableEntry fields */ {BITSOFFS(0, 2), "CCT_Shift", mad_dump_uint}, {BITSOFFS(2, 14), "CCT_Multiplier", mad_dump_uint}, - {0, 0}, /* IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_LAST_F */ + {}, /* IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_LAST_F */ /* * Timestamp fields */ {0, 32, "Timestamp", mad_dump_uint}, - {0, 0}, /* IB_CC_TIMESTAMP_LAST_F */ + {}, /* IB_CC_TIMESTAMP_LAST_F */ /* Node Record */ {BITSOFFS(0, 16), "Lid", mad_dump_uint}, @@ -925,7 +925,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(320, 8), "LocalPort", mad_dump_uint}, {BITSOFFS(328, 24), "VendorId", mad_dump_hex}, {352, 64 * 8, "NodeDesc", mad_dump_string}, - {0, 0}, /* IB_SA_NR_LAST_F */ + {}, /* IB_SA_NR_LAST_F */ /* * PortSamplesResult fields @@ -947,7 +947,7 @@ static const ib_field_t ib_mad_f[] = { {416, 32, "Counter12", mad_dump_uint}, {448, 32, "Counter13", mad_dump_uint}, {480, 32, "Counter14", mad_dump_uint}, - {0, 0}, /* IB_PSR_LAST_F */ + {}, /* IB_PSR_LAST_F */ /* * PortInfoExtended fields @@ -958,7 +958,7 @@ static const ib_field_t ib_mad_f[] = { {BITSOFFS(64, 16), "FDRFECModeEnabled", mad_dump_hex}, {BITSOFFS(80, 16), "EDRFECModeSupported", mad_dump_hex}, {BITSOFFS(96, 16), "EDRFECModeEnabled", mad_dump_hex}, - {0, 0}, /* IB_PORT_EXT_LAST_F */ + {}, /* IB_PORT_EXT_LAST_F */ /* * PortExtendedSpeedsCounters RSFEC Active fields @@ -982,7 +982,7 @@ static const ib_field_t ib_mad_f[] = { {1120, 32, "PortFECCorrectableBlockCtr", mad_dump_uint}, {1152, 32, "PortFECUncorrectableBlockCtr", mad_dump_uint}, {1184, 32, "PortFECCorrectedSymbolCtr", mad_dump_uint}, - {0, 0}, /* IB_PESC_RSFEC_LAST_F */ + {}, /* IB_PESC_RSFEC_LAST_F */ /* * More PortCountersExtended fields @@ -1002,7 +1002,7 @@ static const ib_field_t ib_mad_f[] = { {1280, 64, "VL15Dropped", mad_dump_uint}, {1344, 64, "PortXmitWait", mad_dump_uint}, {1408, 64, "QP1Dropped", mad_dump_uint}, - {0, 0}, /* IB_PC_EXT_ERR_LAST_F */ + {}, /* IB_PC_EXT_ERR_LAST_F */ /* * Another PortCounters field @@ -1014,9 +1014,9 @@ static const ib_field_t ib_mad_f[] = { */ {112, 16, "HDRFECModeSupported", mad_dump_hex}, {128, 16, "HDRFECModeEnabled", mad_dump_hex}, - {0, 0}, /* IB_PORT_EXT_HDR_FEC_MODE_LAST_F */ + {}, /* IB_PORT_EXT_HDR_FEC_MODE_LAST_F */ - {0, 0} /* IB_FIELD_LAST_ */ + {} /* IB_FIELD_LAST_ */ }; static void _set_field64(void *buf, int base_offs, const ib_field_t * f,