Skip to content

Commit

Permalink
Merge pull request #6193 from wzamazon/efa_revert_ignore_unsupported
Browse files Browse the repository at this point in the history
prov/efa: revert "ignore unsupported req packets instead write error"
  • Loading branch information
rwespetal authored Aug 13, 2020
2 parents 0b0f4b2 + 88d8396 commit f60a1d7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions prov/efa/src/rxr/rxr_pkt_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,15 @@ void rxr_pkt_handle_recv_completion(struct rxr_ep *ep,
assert(pkt_entry->pkt_size > 0);

base_hdr = rxr_get_base_hdr(pkt_entry->pkt);
if (base_hdr->type >= RXR_EXTRA_REQ_PKT_END) {
FI_WARN(&rxr_prov, FI_LOG_CQ,
"Peer %d is requesting feature %d, which this EP does not support.\n",
(int)src_addr, base_hdr->type);

assert(0 && "invalid REQ packe type");
rxr_cq_handle_cq_error(ep, -FI_EIO);
return;
}

if (base_hdr->type >= RXR_REQ_PKT_BEGIN) {
/*
Expand Down Expand Up @@ -627,17 +636,6 @@ void rxr_pkt_handle_recv_completion(struct rxr_ep *ep,
ep->posted_bufs_efa--;
}

if (base_hdr->type >= RXR_EXTRA_REQ_PKT_END) {
FI_WARN(&rxr_prov, FI_LOG_CQ,
"Peer %d is requesting feature %d, which this EP does not support.\n"
"A handshake packet contains capability bits has been sent to peer.\n"
"This packet will be ignored.\n",
(int)src_addr, base_hdr->type);

rxr_pkt_entry_release_rx(ep, pkt_entry);
return;
}

switch (base_hdr->type) {
case RXR_RETIRED_RTS_PKT:
FI_WARN(&rxr_prov, FI_LOG_CQ,
Expand Down

0 comments on commit f60a1d7

Please sign in to comment.