mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
if_ntb: Fix typo in qp_link_work to match Linux
Throw away the result of the peer SPAD read. The peer will write our local SPAD and we need to keep the locally read SPAD value to check if the remote side is up. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d5bd08b091
commit
6a88fb3ef8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289615
@ -1381,14 +1381,14 @@ ntb_qp_link_work(void *arg)
|
||||
struct ntb_transport_qp *qp = arg;
|
||||
struct ntb_softc *ntb = qp->ntb;
|
||||
struct ntb_transport_ctx *nt = qp->transport;
|
||||
int val;
|
||||
uint32_t val, dummy;
|
||||
|
||||
ntb_spad_read(ntb, IF_NTB_QP_LINKS, &val);
|
||||
|
||||
ntb_peer_spad_write(ntb, IF_NTB_QP_LINKS, val | (1ull << qp->qp_num));
|
||||
|
||||
/* query remote spad for qp ready bits */
|
||||
ntb_peer_spad_read(ntb, IF_NTB_QP_LINKS, &val);
|
||||
ntb_peer_spad_read(ntb, IF_NTB_QP_LINKS, &dummy);
|
||||
|
||||
/* See if the remote side is up */
|
||||
if ((val & (1ull << qp->qp_num)) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user