forked from Minki/linux
d164bf64a9
use SPDX-License-Identifier instead of a verbose license text Link: https://lore.kernel.org/r/20210823023530.48-1-caihuoqing@baidu.com Signed-off-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
19 lines
588 B
C
19 lines
588 B
C
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
|
|
/*
|
|
* Copyright(c) 2016 Intel Corporation.
|
|
*/
|
|
|
|
#ifndef DEF_RVTMAD_H
|
|
#define DEF_RVTMAD_H
|
|
|
|
#include <rdma/rdma_vt.h>
|
|
|
|
int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num,
|
|
const struct ib_wc *in_wc, const struct ib_grh *in_grh,
|
|
const struct ib_mad_hdr *in, size_t in_mad_size,
|
|
struct ib_mad_hdr *out, size_t *out_mad_size,
|
|
u16 *out_mad_pkey_index);
|
|
int rvt_create_mad_agents(struct rvt_dev_info *rdi);
|
|
void rvt_free_mad_agents(struct rvt_dev_info *rdi);
|
|
#endif /* DEF_RVTMAD_H */
|