Lines Matching defs:packet

57  * make_rc_ack - construct a response packet (ACK, NAK, or RDMA read)
61 * @ps: the xmit packet state
264 * 5.2 Build TID RDMA WRITE RESP packet
380 * hfi1_make_rc_req - construct a request packet (SEND, RDMA r/w, ATOMIC)
382 * @ps: the current packet state
899 * last packet constructed for new requests and therefore
944 * last packet constructed for new requests and therefore
984 * last packet constructed for new requests and therefore
1196 static inline void hfi1_queue_rc_ack(struct hfi1_packet *packet, bool is_fecn)
1198 struct rvt_qp *qp = packet->qp;
1205 ibp = rcd_to_iport(packet->rcd);
1219 static inline void hfi1_make_rc_ack_9B(struct hfi1_packet *packet,
1225 struct rvt_qp *qp = packet->qp;
1226 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
1272 static inline void hfi1_make_rc_ack_16B(struct hfi1_packet *packet,
1278 struct rvt_qp *qp = packet->qp;
1279 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd);
1325 typedef void (*hfi1_make_rc_ack)(struct hfi1_packet *packet,
1338 * hfi1_send_rc_ack - Construct an ACK packet and send it
1344 void hfi1_send_rc_ack(struct hfi1_packet *packet, bool is_fecn)
1346 struct hfi1_ctxtdata *rcd = packet->rcd;
1347 struct rvt_qp *qp = packet->qp;
1364 hfi1_queue_rc_ack(packet, is_fecn);
1370 hfi1_queue_rc_ack(packet, is_fecn);
1379 hfi1_make_rc_ack_tbl[priv->hdr_type](packet, &opa_hdr, sc5, is_fecn,
1393 hfi1_queue_rc_ack(packet, is_fecn);
1410 * @psn: the packet sequence number to restart at
1452 * @psn: the packet sequence number to restart at
1669 * send a single packet in the likely case the
1754 * Start timer after a packet requesting an ACK has been sent and
1777 * The TID RDMA ACK packet could be received before this
1922 * @psn: the packet sequence number of the TID RDMA WRITE RESP.
1937 * If this is the first TID RDMA WRITE RESP packet for the current
1940 * packet, change the s_state and advance the s_cur.
1956 * @psn: the packet sequence number of the ACK
2059 * ACK packet handler (see tid_rdma.c).
2129 * and continue with the next packet the
2152 * response is not a TID RDMA WRITE RESP packet, s_last_psn
2260 * We have seen an out of sequence RDMA read middle or last packet.
2295 * rc_rcv_resp - process an incoming RC response packet
2296 * @packet: data packet information
2299 * packet for the given QP.
2302 static void rc_rcv_resp(struct hfi1_packet *packet)
2304 struct hfi1_ctxtdata *rcd = packet->rcd;
2305 void *data = packet->payload;
2306 u32 tlen = packet->tlen;
2307 struct rvt_qp *qp = packet->qp;
2309 struct ib_other_headers *ohdr = packet->ohdr;
2316 u32 psn = ib_bth_get_psn(packet->ohdr);
2318 u16 hdrsize = packet->hlen;
2319 u8 opcode = packet->opcode;
2320 u8 pad = packet->pad;
2321 u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
2495 * rc_rcv_error - process an incoming duplicate or error RC packet
2496 * @ohdr: the other headers for this packet
2497 * @data: the packet data
2498 * @qp: the QP for this packet
2499 * @opcode: the opcode for this packet
2500 * @psn: the packet sequence number for this packet
2505 * incoming RC packet for the given QP.
2756 * hfi1_rc_rcv - process an incoming RC packet
2757 * @packet: data packet information
2759 * This is called from qp_rcv() to process an incoming RC packet
2763 void hfi1_rc_rcv(struct hfi1_packet *packet)
2765 struct hfi1_ctxtdata *rcd = packet->rcd;
2766 void *data = packet->payload;
2767 u32 tlen = packet->tlen;
2768 struct rvt_qp *qp = packet->qp;
2771 struct ib_other_headers *ohdr = packet->ohdr;
2772 u32 opcode = packet->opcode;
2773 u32 hdrsize = packet->hlen;
2774 u32 psn = ib_bth_get_psn(packet->ohdr);
2775 u32 pad = packet->pad;
2784 u8 extra_bytes = pad + packet->extra_byte + (SIZE_OF_CRC << 2);
2788 if (hfi1_ruc_check_hdr(ibp, packet))
2791 fecn = process_ecn(qp, packet);
2796 * packet sequence number will be for something in the send work
2797 * queue rather than the expected receive packet sequence number.
2802 rc_rcv_resp(packet);
2853 /* OK, process the packet. */
2868 * There will be no padding for 9B packet but 16B packets
3164 if (packet->numpkt == 0 || fecn ||
3206 hfi1_send_rc_ack(packet, fecn);
3211 struct hfi1_packet *packet,
3219 if (hfi1_ruc_check_hdr(ibp, packet))
3222 psn = ib_bth_get_psn(packet->ohdr);
3223 opcode = ib_bth_get_opcode(packet->ohdr);