Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
qib_uc.c File Reference
#include "qib.h"

Go to the source code of this file.

Macros

#define OP(x)   IB_OPCODE_UC_##x
 

Functions

int qib_make_uc_req (struct qib_qp *qp)
 
void qib_uc_rcv (struct qib_ibport *ibp, struct qib_ib_header *hdr, int has_grh, void *data, u32 tlen, struct qib_qp *qp)
 

Macro Definition Documentation

#define OP (   x)    IB_OPCODE_UC_##x

Definition at line 38 of file qib_uc.c.

Function Documentation

int qib_make_uc_req ( struct qib_qp qp)

qib_make_uc_req - construct a request packet (SEND, RDMA write) : a pointer to the QP

Return 1 if constructed; otherwise, return 0.

Definition at line 46 of file qib_uc.c.

void qib_uc_rcv ( struct qib_ibport ibp,
struct qib_ib_header hdr,
int  has_grh,
void data,
u32  tlen,
struct qib_qp qp 
)

qib_uc_rcv - handle an incoming UC packet : the port the packet came in on : the header of the packet : true if the packet has a GRH : the packet data : the length of the packet : the QP for this packet.

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

Definition at line 242 of file qib_uc.c.