|
Packit |
857059 |
/* BEGIN_ICS_COPYRIGHT2 ****************************************
|
|
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_COPYRIGHT2 ****************************************/
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/* [ICS VERSION STRING: unknown] */
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#ifndef __OPAMGT_PRIV_SA_H__
|
|
Packit |
857059 |
#define __OPAMGT_PRIV_SA_H__
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#include "opamgt_priv.h"
|
|
Packit |
857059 |
#include <iba/stl_sd.h>
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/*
|
|
Packit |
857059 |
* Convert old QUERY_INPUT_VALUE to new OMGT_QUERY_INPUT_VALUE
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @param output_query Query structure to be passed to omgt_query_sa
|
|
Packit |
857059 |
* @param old_query old query InputValue holder
|
|
Packit |
857059 |
* @param source_gid local gid for in-band queries or a source gid for
|
|
Packit |
857059 |
* out-of-band queries. Queries like path and trace
|
|
Packit |
857059 |
* record require a SourceGid.
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @return FSTATUS: FNOT_FOUND (Type Failure), FERROR (source_gid Failure)
|
|
Packit |
857059 |
*/
|
|
Packit |
857059 |
FSTATUS omgt_input_value_conversion(OMGT_QUERY *output_query, QUERY_INPUT_VALUE *old_query, IB_GID source_gid);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/**
|
|
Packit |
857059 |
* Pose a query to the fabric, expect a response.
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @param port port opened by omgt_open_port_*
|
|
Packit |
857059 |
* @param pQuery pointer to the query structure
|
|
Packit |
857059 |
* @param ppQueryResult pointer where the response will go
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @return 0 if success, else error code
|
|
Packit |
857059 |
*/
|
|
Packit |
857059 |
FSTATUS omgt_query_sa(struct omgt_port *port,
|
|
Packit |
857059 |
OMGT_QUERY *pQuery,
|
|
Packit |
857059 |
QUERY_RESULT_VALUES **ppQueryResult);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
/**
|
|
Packit |
857059 |
* Free the memory used in the query result
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @param pQueryResult pointer to the SA query result buffer
|
|
Packit |
857059 |
*
|
|
Packit |
857059 |
* @return none
|
|
Packit |
857059 |
*/
|
|
Packit |
857059 |
void omgt_free_query_result_buffer(IN void * pQueryResult);
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#endif // __OPAMGT_PRIV_SA_H__
|
|
Packit |
857059 |
|