Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ipath_rc.c File Reference
#include <linux/io.h>
#include "ipath_verbs.h"
#include "ipath_kernel.h"

Go to the source code of this file.

Macros

#define OP(x)   IB_OPCODE_RC_##x
 

Functions

int ipath_make_rc_req (struct ipath_qp *qp)
 
void ipath_restart_rc (struct ipath_qp *qp, u32 psn)
 
void ipath_rc_error (struct ipath_qp *qp, enum ib_wc_status err)
 
void ipath_rc_rcv (struct ipath_ibdev *dev, struct ipath_ib_header *hdr, int has_grh, void *data, u32 tlen, struct ipath_qp *qp)
 

Macro Definition Documentation

#define OP (   x)    IB_OPCODE_RC_##x

Definition at line 40 of file ipath_rc.c.

Function Documentation

int ipath_make_rc_req ( struct ipath_qp qp)

ipath_make_rc_req - construct a request packet (SEND, RDMA r/w, ATOMIC) : a pointer to the QP

Return 1 if constructed; otherwise, return 0.

Definition at line 213 of file ipath_rc.c.

void ipath_rc_error ( struct ipath_qp qp,
enum ib_wc_status  err 
)

Definition at line 1525 of file ipath_rc.c.

void ipath_rc_rcv ( struct ipath_ibdev dev,
struct ipath_ib_header hdr,
int  has_grh,
void data,
u32  tlen,
struct ipath_qp qp 
)

ipath_rc_rcv - process an incoming RC packet : the device this packet came in on : the header of this packet : true if the header has a GRH : the packet data : the packet length : the QP for this packet

This is called from ipath_qp_rcv() to process an incoming RC packet for the given QP. Called at interrupt level.

Definition at line 1570 of file ipath_rc.c.

void ipath_restart_rc ( struct ipath_qp qp,
u32  psn 
)

ipath_restart_rc - back up requester to resend the last un-ACKed request : the QP to restart : packet sequence number for the request : the work completion request

The QP s_lock should be held and interrupts disabled.

Definition at line 805 of file ipath_rc.c.