|
Packit |
5ea288 |
/* BEGIN_ICS_COPYRIGHT4 ****************************************
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
Copyright (c) 2015, Intel Corporation
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
Redistribution and use in source and binary forms, with or without
|
|
Packit |
5ea288 |
modification, are permitted provided that the following conditions are met:
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
* Redistributions of source code must retain the above copyright notice,
|
|
Packit |
5ea288 |
this list of conditions and the following disclaimer.
|
|
Packit |
5ea288 |
* Redistributions in binary form must reproduce the above copyright
|
|
Packit |
5ea288 |
notice, this list of conditions and the following disclaimer in the
|
|
Packit |
5ea288 |
documentation and/or other materials provided with the distribution.
|
|
Packit |
5ea288 |
* Neither the name of Intel Corporation nor the names of its contributors
|
|
Packit |
5ea288 |
may be used to endorse or promote products derived from this software
|
|
Packit |
5ea288 |
without specific prior written permission.
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
Packit |
5ea288 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
5ea288 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
Packit |
5ea288 |
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
Packit |
5ea288 |
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit |
5ea288 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
Packit |
5ea288 |
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
Packit |
5ea288 |
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
Packit |
5ea288 |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
Packit |
5ea288 |
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
** END_ICS_COPYRIGHT4 ****************************************/
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
/* [ICS VERSION STRING: unknown] */
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
/* Suppress duplicate loading of this file */
|
|
Packit |
5ea288 |
#ifndef _INSI_IB_SD_PARAMS_H_
|
|
Packit |
5ea288 |
#define _INSI_IB_SD_PARAMS_H_
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#if defined (__cplusplus)
|
|
Packit |
5ea288 |
extern "C" {
|
|
Packit |
5ea288 |
#endif
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#include "datatypes.h"
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
/* default client control options */
|
|
Packit |
5ea288 |
#define SD_DEFAULT_RETRY_INTERVAL 10000 /* ms */
|
|
Packit |
5ea288 |
#define SD_DEFAULT_RETRY_COUNT 3
|
|
Packit |
5ea288 |
#if defined(DBG) ||defined( IB_DEBUG)
|
|
Packit |
5ea288 |
#define SD_DEFAULT_DEBUG_FLAGS 0xffffffff
|
|
Packit |
5ea288 |
#else
|
|
Packit |
5ea288 |
#define SD_DEFAULT_DEBUG_FLAGS 0
|
|
Packit |
5ea288 |
#endif
|
|
Packit |
5ea288 |
#define SD_DEFAULT_OPTION_FLAGS 0
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
/* interval for checking queued queries and retries/timeouts in ms */
|
|
Packit |
5ea288 |
#define SD_DEFAULT_TIME_INTERVAL 500 /*1000 */
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
/* max child queries in main queue, helps to prevent child queries from
|
|
Packit |
5ea288 |
* overrunning primary queries
|
|
Packit |
5ea288 |
*/
|
|
Packit |
5ea288 |
#define SD_DEFAULT_MAX_SUB_QUERY_QUEUED 10
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#define SD_DEFAULT_MAX_SA_OUTSTANDING 1
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#define SD_DEFAULT_SA_BUSY_BACKOFF 10000 /* ms */
|
|
Packit |
5ea288 |
#define SD_DEFAULT_VALIDATE_NODE_RECORD 1
|
|
Packit |
5ea288 |
#define SD_DEFAULT_DUMP_INVALID_NODE_RECORD 0
|
|
Packit |
5ea288 |
#define SD_DEFAULT_MIN_PKTLIFETIME 60 /* ms */
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
typedef struct _SD_CONFIG_PARAMS {
|
|
Packit |
5ea288 |
/* parameters for queries where ClientControlParameters omitted */
|
|
Packit |
5ea288 |
uint32 DefaultRetryCount;
|
|
Packit |
5ea288 |
uint32 DefaultRetryInterval;
|
|
Packit |
5ea288 |
uint32 DefaultDebugFlags;
|
|
Packit |
5ea288 |
uint32 DefaultOptionFlags;
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
uint32 TimeInterval; /* retry/timeout check rate in ms */
|
|
Packit |
5ea288 |
uint32 SaBusyBackoff; /* backoff before retries when Busy reported */
|
|
Packit |
5ea288 |
uint32 ValidateNodeRecord; /* Validation of GUIDs in Node Record */
|
|
Packit |
5ea288 |
uint32 DumpInvalidNodeRecord; /* Full dump of any Invalid Node Records */
|
|
Packit |
5ea288 |
uint32 MinPktLifeTime; /* Minimum PathRecord.PktLifeTime to report, in ms */
|
|
Packit |
5ea288 |
/* maximum outstanding queries/operations */
|
|
Packit |
5ea288 |
uint32 MaxChildQuery;
|
|
Packit |
5ea288 |
uint32 MaxOutstanding;
|
|
Packit |
5ea288 |
} SD_CONFIG_PARAMS;
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#define SD_DEFAULT_CONFIG_PARAMS { \
|
|
Packit |
5ea288 |
SD_DEFAULT_RETRY_INTERVAL, SD_DEFAULT_RETRY_COUNT, SD_DEFAULT_DEBUG_FLAGS, \
|
|
Packit |
5ea288 |
SD_DEFAULT_OPTION_FLAGS, \
|
|
Packit |
5ea288 |
SD_DEFAULT_TIME_INTERVAL, \
|
|
Packit |
5ea288 |
SD_DEFAULT_SA_BUSY_BACKOFF, \
|
|
Packit |
5ea288 |
SD_DEFAULT_VALIDATE_NODE_RECORD, \
|
|
Packit |
5ea288 |
SD_DEFAULT_DUMP_INVALID_NODE_RECORD, \
|
|
Packit |
5ea288 |
SD_DEFAULT_MIN_PKTLIFETIME, \
|
|
Packit |
5ea288 |
SD_DEFAULT_MAX_SUB_QUERY_QUEUED, \
|
|
Packit |
5ea288 |
SD_DEFAULT_MAX_SA_OUTSTANDING \
|
|
Packit |
5ea288 |
}
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
extern SD_CONFIG_PARAMS g_SdParams;
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#if defined (__cplusplus)
|
|
Packit |
5ea288 |
};
|
|
Packit |
5ea288 |
#endif
|
|
Packit |
5ea288 |
|
|
Packit |
5ea288 |
#endif /* _INSI_IB_SD_PARAMS_H_ */
|