xref: /kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/mad.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright(c) 2016 Intel Corporation.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef DEF_RVTMAD_H
762306a36Sopenharmony_ci#define DEF_RVTMAD_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#include <rdma/rdma_vt.h>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciint rvt_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num,
1262306a36Sopenharmony_ci		    const struct ib_wc *in_wc, const struct ib_grh *in_grh,
1362306a36Sopenharmony_ci		    const struct ib_mad_hdr *in, size_t in_mad_size,
1462306a36Sopenharmony_ci		    struct ib_mad_hdr *out, size_t *out_mad_size,
1562306a36Sopenharmony_ci		    u16 *out_mad_pkey_index);
1662306a36Sopenharmony_ciint rvt_create_mad_agents(struct rvt_dev_info *rdi);
1762306a36Sopenharmony_civoid rvt_free_mad_agents(struct rvt_dev_info *rdi);
1862306a36Sopenharmony_ci#endif          /* DEF_RVTMAD_H */
19

Indexes created Thu Nov 07 10:32:03 CST 2024