2021-08-23 02:35:30 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
|
2016-01-06 17:58:37 +00:00
|
|
|
/*
|
2016-01-22 21:04:58 +00:00
|
|
|
* Copyright(c) 2016 Intel Corporation.
|
2016-01-06 17:58:37 +00:00
|
|
|
*/
|
|
|
|
|
2021-08-23 02:35:30 +00:00
|
|
|
#ifndef DEF_RVTMAD_H
|
|
|
|
#define DEF_RVTMAD_H
|
|
|
|
|
2016-01-06 17:58:37 +00:00
|
|
|
#include <rdma/rdma_vt.h>
|
|
|
|
|
2021-03-01 07:04:20 +00:00
|
|
|
int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num,
|
2016-01-06 17:58:37 +00:00
|
|
|
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);
|
2016-01-22 21:04:51 +00:00
|
|
|
int rvt_create_mad_agents(struct rvt_dev_info *rdi);
|
|
|
|
void rvt_free_mad_agents(struct rvt_dev_info *rdi);
|
2016-01-06 17:58:37 +00:00
|
|
|
#endif /* DEF_RVTMAD_H */
|