MonGetLinkStats

Retrieves the link statistics for one link.

Prototype

MON_STATUS MonGetLinkStats ( U8 board, MonLinkStats *pstats, S16 linkNo, Bool bReset )

Argument

Description

board

TX board number on which the desired monitor task resides.

pstats

Pointer to MonLinkStats structure:

typedef struct _MonLinkStats     /* MTP level 2 link statistics */
{
    S16   action;          /* Action to take (ZEROSTS or NOZEROSTS) */
    S16   spare1;          /* Alignment */
    U32   numMsuRx;        /* Number of MSUs received */
    U32   numLssuRx;       /* Number of LSSUs sent up to host */
    U32   numFisuRx;       /* Number of FISUs sent up to host */
    U32   numRxFiltered;   /* Number of messages dropped due to filter
                              configuration */
    U32   numSUERMFail;    /* Number of times the SUERM has failed on this
                              link */
} MonLinkStats;

linkNo

Retrieve the statistics of this specific link number.

bReset

Flag that indicates whether or not to set statistics to zero after retrieval.


Return values

Return value

Description

MON_BOARD

Board number out of range.

MON_DRIVER

CPI driver returned an error.

MON_HANDLE

Board not previously initialized.

MON_LINKTYPE

Invalid link or switch type.

MON_PARAM

Invalid parameter.

MON_RESPONSE

Wrong response from board.

MON_SUCCESS

 

MON_TIMEOUT

No response from board.