|
Packit |
857059 |
/* BEGIN_ICS_COPYRIGHT7 ****************************************
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Copyright (c) 2015-2017, Intel Corporation
|
|
Packit |
857059 |
|
|
Packit |
857059 |
Redistribution and use in source and binary forms, with or without
|
|
Packit |
857059 |
modification, are permitted provided that the following conditions are met:
|
|
Packit |
857059 |
|
|
Packit |
857059 |
* Redistributions of source code must retain the above copyright notice,
|
|
Packit |
857059 |
this list of conditions and the following disclaimer.
|
|
Packit |
857059 |
* Redistributions in binary form must reproduce the above copyright
|
|
Packit |
857059 |
notice, this list of conditions and the following disclaimer in the
|
|
Packit |
857059 |
documentation and/or other materials provided with the distribution.
|
|
Packit |
857059 |
* Neither the name of Intel Corporation nor the names of its contributors
|
|
Packit |
857059 |
may be used to endorse or promote products derived from this software
|
|
Packit |
857059 |
without specific prior written permission.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
Packit |
857059 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
857059 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
Packit |
857059 |
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
Packit |
857059 |
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit |
857059 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
Packit |
857059 |
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
Packit |
857059 |
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
Packit |
857059 |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
Packit |
857059 |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
857059 |
|
|
Packit |
857059 |
** END_ICS_COPYRIGHT7 ****************************************/
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/* [ICS VERSION STRING: unknown] */
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#ifndef _STL_PA_PRIV_H_
|
|
Packit |
857059 |
#define _STL_PA_PRIV_H_ (1) /* suppress duplicate loading of this file */
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#include "iba/stl_pa_types.h"
|
|
Packit |
857059 |
#include "iba/stl_mad_types.h"
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#ifdef __cplusplus
|
|
Packit |
857059 |
extern "C" {
|
|
Packit |
857059 |
#endif
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(STL_PA_IMAGE_ID_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->imageNumber = ntoh64(pRecord->imageNumber);
|
|
Packit |
857059 |
pRecord->imageOffset = ntoh32(pRecord->imageOffset);
|
|
Packit |
857059 |
pRecord->imageTime.absoluteTime = ntoh32(pRecord->imageTime.absoluteTime);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_PM_GROUP_INFO(STL_PA_PM_GROUP_INFO_DATA *pRecord, boolean isRequest)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
if (isRequest) return;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->numInternalPorts = ntoh32(pRecord->numInternalPorts);
|
|
Packit |
857059 |
pRecord->numExternalPorts = ntoh32(pRecord->numExternalPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalUtilStats.totalMBps = ntoh64(pRecord->internalUtilStats.totalMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.totalKPps = ntoh64(pRecord->internalUtilStats.totalKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.avgMBps = ntoh32(pRecord->internalUtilStats.avgMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.minMBps = ntoh32(pRecord->internalUtilStats.minMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.maxMBps = ntoh32(pRecord->internalUtilStats.maxMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.numBWBuckets = ntoh32(pRecord->internalUtilStats.numBWBuckets);
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_UTIL_BUCKETS; i++)
|
|
Packit |
857059 |
pRecord->internalUtilStats.BWBuckets[i] = ntoh32(pRecord->internalUtilStats.BWBuckets[i]);
|
|
Packit |
857059 |
pRecord->internalUtilStats.avgKPps = ntoh32(pRecord->internalUtilStats.avgKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.minKPps = ntoh32(pRecord->internalUtilStats.minKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.maxKPps = ntoh32(pRecord->internalUtilStats.maxKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.pmaNoRespPorts = ntoh16(pRecord->internalUtilStats.pmaNoRespPorts);
|
|
Packit |
857059 |
pRecord->internalUtilStats.topoIncompPorts = ntoh16(pRecord->internalUtilStats.topoIncompPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->sendUtilStats.totalMBps = ntoh64(pRecord->sendUtilStats.totalMBps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.totalKPps = ntoh64(pRecord->sendUtilStats.totalKPps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.avgMBps = ntoh32(pRecord->sendUtilStats.avgMBps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.minMBps = ntoh32(pRecord->sendUtilStats.minMBps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.maxMBps = ntoh32(pRecord->sendUtilStats.maxMBps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.numBWBuckets = ntoh32(pRecord->sendUtilStats.numBWBuckets);
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_UTIL_BUCKETS; i++)
|
|
Packit |
857059 |
pRecord->sendUtilStats.BWBuckets[i] = ntoh32(pRecord->sendUtilStats.BWBuckets[i]);
|
|
Packit |
857059 |
pRecord->sendUtilStats.avgKPps = ntoh32(pRecord->sendUtilStats.avgKPps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.minKPps = ntoh32(pRecord->sendUtilStats.minKPps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.maxKPps = ntoh32(pRecord->sendUtilStats.maxKPps);
|
|
Packit |
857059 |
pRecord->sendUtilStats.pmaNoRespPorts = ntoh16(pRecord->sendUtilStats.pmaNoRespPorts);
|
|
Packit |
857059 |
pRecord->sendUtilStats.topoIncompPorts = ntoh16(pRecord->sendUtilStats.topoIncompPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->recvUtilStats.totalMBps = ntoh64(pRecord->recvUtilStats.totalMBps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.totalKPps = ntoh64(pRecord->recvUtilStats.totalKPps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.avgMBps = ntoh32(pRecord->recvUtilStats.avgMBps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.minMBps = ntoh32(pRecord->recvUtilStats.minMBps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.maxMBps = ntoh32(pRecord->recvUtilStats.maxMBps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.numBWBuckets = ntoh32(pRecord->recvUtilStats.numBWBuckets);
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_UTIL_BUCKETS; i++)
|
|
Packit |
857059 |
pRecord->recvUtilStats.BWBuckets[i] = ntoh32(pRecord->recvUtilStats.BWBuckets[i]);
|
|
Packit |
857059 |
pRecord->recvUtilStats.avgKPps = ntoh32(pRecord->recvUtilStats.avgKPps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.minKPps = ntoh32(pRecord->recvUtilStats.minKPps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.maxKPps = ntoh32(pRecord->recvUtilStats.maxKPps);
|
|
Packit |
857059 |
pRecord->recvUtilStats.pmaNoRespPorts = ntoh16(pRecord->recvUtilStats.pmaNoRespPorts);
|
|
Packit |
857059 |
pRecord->recvUtilStats.topoIncompPorts = ntoh16(pRecord->recvUtilStats.topoIncompPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.integrityErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.integrityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.congestion = ntoh32(pRecord->internalCategoryStats.categoryMaximums.congestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.smaCongestion = ntoh32(pRecord->internalCategoryStats.categoryMaximums.smaCongestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.bubble = ntoh32(pRecord->internalCategoryStats.categoryMaximums.bubble);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.securityErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.securityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.routingErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.routingErrors);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.utilizationPct10 = ntoh16(pRecord->internalCategoryStats.categoryMaximums.utilizationPct10);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.discardsPct10 = ntoh16(pRecord->internalCategoryStats.categoryMaximums.discardsPct10);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_CATEGORY_BUCKETS; i++) {
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].integrityErrors = ntoh32(pRecord->internalCategoryStats.ports[i].integrityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].congestion = ntoh32(pRecord->internalCategoryStats.ports[i].congestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].smaCongestion = ntoh32(pRecord->internalCategoryStats.ports[i].smaCongestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].bubble = ntoh32(pRecord->internalCategoryStats.ports[i].bubble);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].securityErrors = ntoh32(pRecord->internalCategoryStats.ports[i].securityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].routingErrors = ntoh32(pRecord->internalCategoryStats.ports[i].routingErrors);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.integrityErrors = ntoh32(pRecord->externalCategoryStats.categoryMaximums.integrityErrors);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.congestion = ntoh32(pRecord->externalCategoryStats.categoryMaximums.congestion);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.smaCongestion = ntoh32(pRecord->externalCategoryStats.categoryMaximums.smaCongestion);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.bubble = ntoh32(pRecord->externalCategoryStats.categoryMaximums.bubble);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.securityErrors = ntoh32(pRecord->externalCategoryStats.categoryMaximums.securityErrors);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.routingErrors = ntoh32(pRecord->externalCategoryStats.categoryMaximums.routingErrors);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.utilizationPct10 = ntoh16(pRecord->externalCategoryStats.categoryMaximums.utilizationPct10);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.categoryMaximums.discardsPct10 = ntoh16(pRecord->externalCategoryStats.categoryMaximums.discardsPct10);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_CATEGORY_BUCKETS; i++) {
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].integrityErrors = ntoh32(pRecord->externalCategoryStats.ports[i].integrityErrors);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].congestion = ntoh32(pRecord->externalCategoryStats.ports[i].congestion);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].smaCongestion = ntoh32(pRecord->externalCategoryStats.ports[i].smaCongestion);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].bubble = ntoh32(pRecord->externalCategoryStats.ports[i].bubble);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].securityErrors = ntoh32(pRecord->externalCategoryStats.ports[i].securityErrors);
|
|
Packit |
857059 |
pRecord->externalCategoryStats.ports[i].routingErrors = ntoh32(pRecord->externalCategoryStats.ports[i].routingErrors);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
pRecord->maxInternalMBps = ntoh32(pRecord->maxInternalMBps);
|
|
Packit |
857059 |
pRecord->maxExternalMBps = ntoh32(pRecord->maxExternalMBps);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_LIST(STL_PA_GROUP_LIST *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_CONFIG_REQ(STL_PA_PM_GROUP_CFG_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_CONFIG_RSP(STL_PA_PM_GROUP_CFG_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_NODE_INFO_REQ(STL_PA_GROUP_NODEINFO_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->nodeLID = ntoh32(pRecord->nodeLID);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_NODE_INFO_RSP(STL_PA_GROUP_NODEINFO_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->nodeLID = ntoh32(pRecord->nodeLID);
|
|
Packit |
857059 |
for (i = 0; i < 4; i++)
|
|
Packit |
857059 |
pRecord->portSelectMask[i] = ntoh64(pRecord->portSelectMask[i]);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_LINK_INFO_REQ(STL_PA_GROUP_LINKINFO_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->lid = ntoh32(pRecord->lid);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_GROUP_LINK_INFO_RSP(STL_PA_GROUP_LINKINFO_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->fromLID = ntoh32(pRecord->fromLID);
|
|
Packit |
857059 |
pRecord->toLID = ntoh32(pRecord->toLID);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_PORT_COUNTERS(STL_PORT_COUNTERS_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->flags = ntoh32(pRecord->flags);
|
|
Packit |
857059 |
pRecord->portXmitData = ntoh64(pRecord->portXmitData);
|
|
Packit |
857059 |
pRecord->portRcvData = ntoh64(pRecord->portRcvData);
|
|
Packit |
857059 |
pRecord->portXmitPkts = ntoh64(pRecord->portXmitPkts);
|
|
Packit |
857059 |
pRecord->portRcvPkts = ntoh64(pRecord->portRcvPkts);
|
|
Packit |
857059 |
pRecord->portMulticastXmitPkts = ntoh64(pRecord->portMulticastXmitPkts);
|
|
Packit |
857059 |
pRecord->portMulticastRcvPkts = ntoh64(pRecord->portMulticastRcvPkts);
|
|
Packit |
857059 |
pRecord->localLinkIntegrityErrors = ntoh64(pRecord->localLinkIntegrityErrors);
|
|
Packit |
857059 |
pRecord->fmConfigErrors = ntoh64(pRecord->fmConfigErrors);
|
|
Packit |
857059 |
pRecord->portRcvErrors = ntoh64(pRecord->portRcvErrors);
|
|
Packit |
857059 |
pRecord->excessiveBufferOverruns = ntoh64(pRecord->excessiveBufferOverruns);
|
|
Packit |
857059 |
pRecord->portRcvConstraintErrors = ntoh64(pRecord->portRcvConstraintErrors);
|
|
Packit |
857059 |
pRecord->portRcvSwitchRelayErrors = ntoh64(pRecord->portRcvSwitchRelayErrors);
|
|
Packit |
857059 |
pRecord->portXmitDiscards = ntoh64(pRecord->portXmitDiscards);
|
|
Packit |
857059 |
pRecord->portXmitConstraintErrors = ntoh64(pRecord->portXmitConstraintErrors);
|
|
Packit |
857059 |
pRecord->portRcvRemotePhysicalErrors = ntoh64(pRecord->portRcvRemotePhysicalErrors);
|
|
Packit |
857059 |
pRecord->swPortCongestion = ntoh64(pRecord->swPortCongestion);
|
|
Packit |
857059 |
pRecord->portXmitWait = ntoh64(pRecord->portXmitWait);
|
|
Packit |
857059 |
pRecord->portRcvFECN = ntoh64(pRecord->portRcvFECN);
|
|
Packit |
857059 |
pRecord->portRcvBECN = ntoh64(pRecord->portRcvBECN);
|
|
Packit |
857059 |
pRecord->portXmitTimeCong = ntoh64(pRecord->portXmitTimeCong);
|
|
Packit |
857059 |
pRecord->portXmitWastedBW = ntoh64(pRecord->portXmitWastedBW);
|
|
Packit |
857059 |
pRecord->portXmitWaitData = ntoh64(pRecord->portXmitWaitData);
|
|
Packit |
857059 |
pRecord->portRcvBubble = ntoh64(pRecord->portRcvBubble);
|
|
Packit |
857059 |
pRecord->portMarkFECN = ntoh64(pRecord->portMarkFECN);
|
|
Packit |
857059 |
pRecord->linkErrorRecovery = ntoh32(pRecord->linkErrorRecovery);
|
|
Packit |
857059 |
pRecord->linkDowned = ntoh32(pRecord->linkDowned);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_CLR_PORT_COUNTERS(STL_CLR_PORT_COUNTERS_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->NodeLid = ntoh32(pRecord->NodeLid);
|
|
Packit |
857059 |
pRecord->CounterSelectMask.AsReg32 = ntoh32(pRecord->CounterSelectMask.AsReg32);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_CLR_ALL_PORT_COUNTERS(STL_CLR_ALL_PORT_COUNTERS_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->CounterSelectMask.AsReg32 = ntoh32(pRecord->CounterSelectMask.AsReg32);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_PM_CFG(STL_PA_PM_CFG_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->sweepInterval = ntoh32(pRecord->sweepInterval);
|
|
Packit |
857059 |
pRecord->maxClients = ntoh32(pRecord->maxClients);
|
|
Packit |
857059 |
pRecord->sizeHistory = ntoh32(pRecord->sizeHistory);
|
|
Packit |
857059 |
pRecord->sizeFreeze = ntoh32(pRecord->sizeFreeze);
|
|
Packit |
857059 |
pRecord->lease = ntoh32(pRecord->lease);
|
|
Packit |
857059 |
pRecord->pmFlags = ntoh32(pRecord->pmFlags);
|
|
Packit |
857059 |
pRecord->categoryThresholds.integrityErrors = ntoh32(pRecord->categoryThresholds.integrityErrors);
|
|
Packit |
857059 |
pRecord->categoryThresholds.congestion = ntoh32(pRecord->categoryThresholds.congestion);
|
|
Packit |
857059 |
pRecord->categoryThresholds.smaCongestion = ntoh32(pRecord->categoryThresholds.smaCongestion);
|
|
Packit |
857059 |
pRecord->categoryThresholds.bubble = ntoh32(pRecord->categoryThresholds.bubble);
|
|
Packit |
857059 |
pRecord->categoryThresholds.securityErrors = ntoh32(pRecord->categoryThresholds.securityErrors);
|
|
Packit |
857059 |
pRecord->categoryThresholds.routingErrors = ntoh32(pRecord->categoryThresholds.routingErrors);
|
|
Packit |
857059 |
pRecord->memoryFootprint = ntoh64(pRecord->memoryFootprint);
|
|
Packit |
857059 |
pRecord->maxAttempts = ntoh32(pRecord->maxAttempts);
|
|
Packit |
857059 |
pRecord->respTimeout = ntoh32(pRecord->respTimeout);
|
|
Packit |
857059 |
pRecord->minRespTimeout = ntoh32(pRecord->minRespTimeout);
|
|
Packit |
857059 |
pRecord->maxParallelNodes = ntoh32(pRecord->maxParallelNodes);
|
|
Packit |
857059 |
pRecord->pmaBatchSize = ntoh32(pRecord->pmaBatchSize);
|
|
Packit |
857059 |
// ErrorClear is uint8
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_FOCUS_PORTS_REQ(STL_FOCUS_PORTS_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->select = ntoh32(pRecord->select);
|
|
Packit |
857059 |
pRecord->start = ntoh32(pRecord->start);
|
|
Packit |
857059 |
pRecord->range = ntoh32(pRecord->range);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_FOCUS_PORTS_MULTISELECT_REQ(STL_FOCUS_PORTS_MULTISELECT_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
pRecord->start = ntoh32(pRecord->start);
|
|
Packit |
857059 |
pRecord->range = ntoh32(pRecord->range);
|
|
Packit |
857059 |
for (i = 0; i < MAX_NUM_FOCUS_PORT_TUPLES; i++) {
|
|
Packit |
857059 |
pRecord->tuple[i].select = ntoh32(pRecord->tuple[i].select);
|
|
Packit |
857059 |
pRecord->tuple[i].argument = ntoh64(pRecord->tuple[i].argument);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_FOCUS_PORTS_RSP(STL_FOCUS_PORTS_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->value = ntoh64(pRecord->value);
|
|
Packit |
857059 |
pRecord->neighborLid = ntoh32(pRecord->neighborLid);
|
|
Packit |
857059 |
pRecord->neighborValue = ntoh64(pRecord->neighborValue);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->neighborGuid = ntoh64(pRecord->neighborGuid);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_FOCUS_PORTS_MULTISELECT_RSP(STL_FOCUS_PORTS_MULTISELECT_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->neighborLid = ntoh32(pRecord->neighborLid);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->neighborGuid = ntoh64(pRecord->neighborGuid);
|
|
Packit |
857059 |
for (i = 0; i < MAX_NUM_FOCUS_PORT_TUPLES; i++) {
|
|
Packit |
857059 |
pRecord->value[i] = ntoh64(pRecord->value[i]);
|
|
Packit |
857059 |
pRecord->neighborValue[i] = ntoh64(pRecord->neighborValue[i]);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_INFO(STL_PA_IMAGE_INFO_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
pRecord->sweepStart = ntoh64(pRecord->sweepStart);
|
|
Packit |
857059 |
pRecord->sweepDuration = ntoh32(pRecord->sweepDuration);
|
|
Packit |
857059 |
pRecord->numHFIPorts = ntoh16(pRecord->numHFIPorts);
|
|
Packit |
857059 |
pRecord->numSwitchNodes = ntoh16(pRecord->numSwitchNodes);
|
|
Packit |
857059 |
pRecord->numSwitchPorts = ntoh32(pRecord->numSwitchPorts);
|
|
Packit |
857059 |
pRecord->numLinks = ntoh32(pRecord->numLinks);
|
|
Packit |
857059 |
pRecord->numSMs = ntoh32(pRecord->numSMs);
|
|
Packit |
857059 |
pRecord->numNoRespNodes = ntoh32(pRecord->numNoRespNodes);
|
|
Packit |
857059 |
pRecord->numNoRespPorts = ntoh32(pRecord->numNoRespPorts);
|
|
Packit |
857059 |
pRecord->numSkippedNodes = ntoh32(pRecord->numSkippedNodes);
|
|
Packit |
857059 |
pRecord->numSkippedPorts = ntoh32(pRecord->numSkippedPorts);
|
|
Packit |
857059 |
pRecord->numUnexpectedClearPorts = ntoh32(pRecord->numUnexpectedClearPorts);
|
|
Packit |
857059 |
pRecord->imageInterval = ntoh32(pRecord->imageInterval);
|
|
Packit |
857059 |
for (i = 0; i < 2; i++) {
|
|
Packit |
857059 |
pRecord->SMInfo[i].lid = ntoh32(pRecord->SMInfo[i].lid);
|
|
Packit |
857059 |
pRecord->SMInfo[i].smPortGuid = ntoh64(pRecord->SMInfo[i].smPortGuid);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_MOVE_FREEZE(STL_MOVE_FREEZE_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->oldFreezeImage);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->newFreezeImage);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_LIST(STL_PA_VF_LIST *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_INFO(STL_PA_VF_INFO_DATA *pRecord, boolean isRequest)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
int i;
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
if (isRequest) return;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->numPorts = ntoh32(pRecord->numPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalUtilStats.totalMBps = ntoh64(pRecord->internalUtilStats.totalMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.totalKPps = ntoh64(pRecord->internalUtilStats.totalKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.avgMBps = ntoh32(pRecord->internalUtilStats.avgMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.minMBps = ntoh32(pRecord->internalUtilStats.minMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.maxMBps = ntoh32(pRecord->internalUtilStats.maxMBps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.numBWBuckets = ntoh32(pRecord->internalUtilStats.numBWBuckets);
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_UTIL_BUCKETS; i++)
|
|
Packit |
857059 |
pRecord->internalUtilStats.BWBuckets[i] = ntoh32(pRecord->internalUtilStats.BWBuckets[i]);
|
|
Packit |
857059 |
pRecord->internalUtilStats.avgKPps = ntoh32(pRecord->internalUtilStats.avgKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.minKPps = ntoh32(pRecord->internalUtilStats.minKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.maxKPps = ntoh32(pRecord->internalUtilStats.maxKPps);
|
|
Packit |
857059 |
pRecord->internalUtilStats.pmaNoRespPorts = ntoh16(pRecord->internalUtilStats.pmaNoRespPorts);
|
|
Packit |
857059 |
pRecord->internalUtilStats.topoIncompPorts = ntoh16(pRecord->internalUtilStats.topoIncompPorts);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.integrityErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.integrityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.congestion = ntoh32(pRecord->internalCategoryStats.categoryMaximums.congestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.smaCongestion = ntoh32(pRecord->internalCategoryStats.categoryMaximums.smaCongestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.bubble = ntoh32(pRecord->internalCategoryStats.categoryMaximums.bubble);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.securityErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.securityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.routingErrors = ntoh32(pRecord->internalCategoryStats.categoryMaximums.routingErrors);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.utilizationPct10 = ntoh16(pRecord->internalCategoryStats.categoryMaximums.utilizationPct10);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.categoryMaximums.discardsPct10 = ntoh16(pRecord->internalCategoryStats.categoryMaximums.discardsPct10);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
for (i = 0; i < STL_PM_CATEGORY_BUCKETS; i++) {
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].integrityErrors = ntoh32(pRecord->internalCategoryStats.ports[i].integrityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].congestion = ntoh32(pRecord->internalCategoryStats.ports[i].congestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].smaCongestion = ntoh32(pRecord->internalCategoryStats.ports[i].smaCongestion);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].bubble = ntoh32(pRecord->internalCategoryStats.ports[i].bubble);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].securityErrors = ntoh32(pRecord->internalCategoryStats.ports[i].securityErrors);
|
|
Packit |
857059 |
pRecord->internalCategoryStats.ports[i].routingErrors = ntoh32(pRecord->internalCategoryStats.ports[i].routingErrors);
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
pRecord->maxInternalMBps = ntoh32(pRecord->maxInternalMBps);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_CFG_REQ(STL_PA_VF_CFG_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_CFG_RSP(STL_PA_VF_CFG_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_PORT_COUNTERS(STL_PA_VF_PORT_COUNTERS_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->flags = ntoh32(pRecord->flags);
|
|
Packit |
857059 |
pRecord->portVFXmitData = ntoh64(pRecord->portVFXmitData);
|
|
Packit |
857059 |
pRecord->portVFRcvData = ntoh64(pRecord->portVFRcvData);
|
|
Packit |
857059 |
pRecord->portVFXmitPkts = ntoh64(pRecord->portVFXmitPkts);
|
|
Packit |
857059 |
pRecord->portVFRcvPkts = ntoh64(pRecord->portVFRcvPkts);
|
|
Packit |
857059 |
pRecord->portVFXmitDiscards = ntoh16(pRecord->portVFXmitDiscards);
|
|
Packit |
857059 |
pRecord->swPortVFCongestion = ntoh64(pRecord->swPortVFCongestion);
|
|
Packit |
857059 |
pRecord->portVFXmitWait = ntoh64(pRecord->portVFXmitWait);
|
|
Packit |
857059 |
pRecord->portVFRcvFECN = ntoh64(pRecord->portVFRcvFECN);
|
|
Packit |
857059 |
pRecord->portVFRcvBECN = ntoh64(pRecord->portVFRcvBECN);
|
|
Packit |
857059 |
pRecord->portVFXmitTimeCong = ntoh64(pRecord->portVFXmitTimeCong);
|
|
Packit |
857059 |
pRecord->portVFXmitWastedBW = ntoh64(pRecord->portVFXmitWastedBW);
|
|
Packit |
857059 |
pRecord->portVFXmitWaitData = ntoh64(pRecord->portVFXmitWaitData);
|
|
Packit |
857059 |
pRecord->portVFRcvBubble = ntoh64(pRecord->portVFRcvBubble);
|
|
Packit |
857059 |
pRecord->portVFMarkFECN = ntoh64(pRecord->portVFMarkFECN);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_CLEAR_VF_PORT_COUNTERS(STL_PA_CLEAR_VF_PORT_COUNTERS_DATA *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->vfCounterSelectMask.AsReg32 = ntoh32(pRecord->vfCounterSelectMask.AsReg32);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_FOCUS_PORTS_REQ(STL_PA_VF_FOCUS_PORTS_REQ *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->select = ntoh32(pRecord->select);
|
|
Packit |
857059 |
pRecord->start = ntoh32(pRecord->start);
|
|
Packit |
857059 |
pRecord->range = ntoh32(pRecord->range);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
static __inline void
|
|
Packit |
857059 |
BSWAP_STL_PA_VF_FOCUS_PORTS_RSP(STL_PA_VF_FOCUS_PORTS_RSP *pRecord)
|
|
Packit |
857059 |
{
|
|
Packit |
857059 |
#if CPU_LE
|
|
Packit |
857059 |
pRecord->nodeLid = ntoh32(pRecord->nodeLid);
|
|
Packit |
857059 |
pRecord->value = ntoh64(pRecord->value);
|
|
Packit |
857059 |
pRecord->neighborLid = ntoh32(pRecord->neighborLid);
|
|
Packit |
857059 |
pRecord->neighborValue = ntoh64(pRecord->neighborValue);
|
|
Packit |
857059 |
pRecord->nodeGUID = ntoh64(pRecord->nodeGUID);
|
|
Packit |
857059 |
pRecord->neighborGuid = ntoh64(pRecord->neighborGuid);
|
|
Packit |
857059 |
BSWAP_STL_PA_IMAGE_ID(&pRecord->imageId);
|
|
Packit |
857059 |
#endif /* CPU_LE */
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/* Performance Analysis Response Structures */
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_LIST_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupListRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_GROUP_LIST GroupListRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_LIST_RESULTS, *PSTL_PA_GROUP_LIST_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_INFO_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupInfoRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_PM_GROUP_INFO_DATA GroupInfoRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_INFO_RESULTS, *PSTL_PA_GROUP_INFO_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_CONFIG_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupConfigRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_PM_GROUP_CFG_RSP GroupConfigRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_CONFIG_RESULTS, *PSTL_PA_GROUP_CONFIG_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_NODEINFO_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupNodeInfoRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_GROUP_NODEINFO_RSP GroupNodeInfoRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_NODEINFO_RESULTS, *PSTL_PA_GROUP_NODEINFO_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_LINKINFO_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupLinkInfoRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_GROUP_LINKINFO_RSP GroupLinkInfoRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_LINKINFO_RESULTS, *PSTL_PA_GROUP_LINKINFO_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_PORT_COUNTERS_RESULTS {
|
|
Packit |
857059 |
uint32 NumPortCountersRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PORT_COUNTERS_DATA PortCountersRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_PORT_COUNTERS_RESULTS, *PSTL_PA_PORT_COUNTERS_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_CLR_PORT_COUNTERS_RESULTS {
|
|
Packit |
857059 |
uint32 NumClrPortCountersRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_CLR_PORT_COUNTERS_DATA ClrPortCountersRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_CLR_PORT_COUNTERS_RESULTS, *PSTL_PA_CLR_PORT_COUNTERS_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_CLR_ALL_PORT_COUNTERS_RESULTS {
|
|
Packit |
857059 |
uint32 NumClrAllPortCountersRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_CLR_ALL_PORT_COUNTERS_DATA ClrAllPortCountersRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_CLR_ALL_PORT_COUNTERS_RESULTS, *PSTL_PA_CLR_ALL_PORT_COUNTERS_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_PM_CONFIG_RESULTS {
|
|
Packit |
857059 |
uint32 NumPmConfigRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_PM_CFG_DATA PmConfigRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_PM_CONFIG_RESULTS, *PSTL_PA_PM_CONFIG_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_IMAGE_ID_RESULTS {
|
|
Packit |
857059 |
uint32 NumImageIDRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_IMAGE_ID_DATA ImageIDRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_IMAGE_ID_RESULTS, *PSTL_PA_IMAGE_ID_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_FOCUS_PORTS_RESULTS {
|
|
Packit |
857059 |
uint32 NumFocusPortsRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_FOCUS_PORTS_RSP FocusPortsRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_FOCUS_PORTS_RESULTS, *PSTL_PA_FOCUS_PORTS_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_FOCUS_PORTS_MULTISELECT_RESULTS {
|
|
Packit |
857059 |
uint32 NumFocusPortsRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_FOCUS_PORTS_MULTISELECT_RSP FocusPortsRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_FOCUS_PORTS_MULTISELECT_RESULTS, *PSTL_PA_FOCUS_PORTS_RESULTS_MULTISELECT;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_IMAGE_INFO_RESULTS {
|
|
Packit |
857059 |
uint32 NumImageInfoRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_IMAGE_INFO_DATA ImageInfoRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_IMAGE_INFO_RESULTS, *PSTL_PA_IMAGE_INFO_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_MOVE_FREEZE_RESULTS {
|
|
Packit |
857059 |
uint32 NumMoveFreezeRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_MOVE_FREEZE_DATA MoveFreezeRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_MOVE_FREEZE_RESULTS, *PSTL_PA_MOVE_FREEZE_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_VF_LIST_RESULTS {
|
|
Packit |
857059 |
uint32 NumVFListRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_VF_LIST VFListRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_VF_LIST_RESULTS, *PSTL_PA_VF_LIST_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_VF_INFO_RESULTS {
|
|
Packit |
857059 |
uint32 NumVFInfoRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_VF_INFO_DATA VFInfoRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_VF_INFO_RESULTS, *PSTL_PA_VF_INFO_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_VF_CONFIG_RESULTS {
|
|
Packit |
857059 |
uint32 NumVFConfigRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_VF_CFG_RSP VFConfigRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_VF_CONFIG_RESULTS, *PSTL_PA_VF_CONFIG_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_VF_FOCUS_PORTS_RESULTS {
|
|
Packit |
857059 |
uint32 NumVFFocusPortsRecords; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_VF_FOCUS_PORTS_RSP FocusPortsRecords[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_VF_FOCUS_PORTS_RESULTS, *PSTL_PA_VF_FOCUS_PORTS_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_GROUP_LIST2_RESULTS {
|
|
Packit |
857059 |
uint32 NumGroupList2Records; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_GROUP_LIST2 GroupList2Records[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_GROUP_LIST2_RESULTS, *PSTL_PA_GROUP_LIST2_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
typedef struct _STL_PA_VF_LIST2_RESULTS {
|
|
Packit |
857059 |
uint32 NumVFList2Records; /* Number of PA Records returned */
|
|
Packit |
857059 |
STL_PA_VF_LIST2 VFList2Records[1]; /* list of PA records returned */
|
|
Packit |
857059 |
} STL_PA_VF_LIST2_RESULTS, *PSTL_PA_VF_LIST2_RESULTS;
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/* PortXmitData and PortRcvData are in units of flits (8 bytes) */
|
|
Packit |
857059 |
#define FLITS_PER_MiB ((uint64)1024*(uint64)1024/(uint64)8)
|
|
Packit |
857059 |
#define FLITS_PER_MB ((uint64)1000*(uint64)1000/(uint64)8)
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#ifdef __cplusplus
|
|
Packit |
857059 |
}
|
|
Packit |
857059 |
#endif
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#endif /* _STL_PA_PRIV_H_ */
|