Path: blob/master/drivers/infiniband/core/mad_rmpp.h
37212 views
/*1* Copyright (c) 2005 Intel Inc. All rights reserved.2*3* This software is available to you under a choice of one of two4* licenses. You may choose to be licensed under the terms of the GNU5* General Public License (GPL) Version 2, available from the file6* COPYING in the main directory of this source tree, or the7* OpenIB.org BSD license below:8*9* Redistribution and use in source and binary forms, with or10* without modification, are permitted provided that the following11* conditions are met:12*13* - Redistributions of source code must retain the above14* copyright notice, this list of conditions and the following15* disclaimer.16*17* - Redistributions in binary form must reproduce the above18* copyright notice, this list of conditions and the following19* disclaimer in the documentation and/or other materials20* provided with the distribution.21*22* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS26* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN27* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN28* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE29* SOFTWARE.30*/3132#ifndef __MAD_RMPP_H__33#define __MAD_RMPP_H__3435enum {36IB_RMPP_RESULT_PROCESSED,37IB_RMPP_RESULT_CONSUMED,38IB_RMPP_RESULT_INTERNAL,39IB_RMPP_RESULT_UNHANDLED40};4142int ib_send_rmpp_mad(struct ib_mad_send_wr_private *mad_send_wr);4344struct ib_mad_recv_wc *45ib_process_rmpp_recv_wc(struct ib_mad_agent_private *agent,46struct ib_mad_recv_wc *mad_recv_wc);4748int ib_process_rmpp_send_wc(struct ib_mad_send_wr_private *mad_send_wr,49struct ib_mad_send_wc *mad_send_wc);5051void ib_rmpp_send_handler(struct ib_mad_send_wc *mad_send_wc);5253void ib_cancel_rmpp_recvs(struct ib_mad_agent_private *agent);5455int ib_retry_rmpp(struct ib_mad_send_wr_private *mad_send_wr);5657#endif /* __MAD_RMPP_H__ */585960