xref: /openbmc/linux/drivers/infiniband/sw/rdmavt/mad.h (revision d47a97bd)
1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2 /*
3  * Copyright(c) 2016 Intel Corporation.
4  */
5 
6 #ifndef DEF_RVTMAD_H
7 #define DEF_RVTMAD_H
8 
9 #include <rdma/rdma_vt.h>
10 
11 int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num,
12 		    const struct ib_wc *in_wc, const struct ib_grh *in_grh,
13 		    const struct ib_mad_hdr *in, size_t in_mad_size,
14 		    struct ib_mad_hdr *out, size_t *out_mad_size,
15 		    u16 *out_mad_pkey_index);
16 int rvt_create_mad_agents(struct rvt_dev_info *rdi);
17 void rvt_free_mad_agents(struct rvt_dev_info *rdi);
18 #endif          /* DEF_RVTMAD_H */
19