0001
0002
0003
0004
0005
0006 #ifndef DEF_RVTMAD_H
0007 #define DEF_RVTMAD_H
0008
0009 #include <rdma/rdma_vt.h>
0010
0011 int rvt_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num,
0012 const struct ib_wc *in_wc, const struct ib_grh *in_grh,
0013 const struct ib_mad_hdr *in, size_t in_mad_size,
0014 struct ib_mad_hdr *out, size_t *out_mad_size,
0015 u16 *out_mad_pkey_index);
0016 int rvt_create_mad_agents(struct rvt_dev_info *rdi);
0017 void rvt_free_mad_agents(struct rvt_dev_info *rdi);
0018 #endif