aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/if_ntb
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2015-10-20 01:54:34 +0000
committerConrad Meyer <cem@FreeBSD.org>2015-10-20 01:54:34 +0000
commit6a88fb3ef8b0da18a694b9fd75e6000a91ba57df (patch)
tree7df95c0c2fef0a070eb8dd56540af809c6f144e8 /sys/dev/ntb/if_ntb
parentd5bd08b09170a686b6ef1a4ad7a159dabe299526 (diff)
downloadsrc-6a88fb3ef8b0da18a694b9fd75e6000a91ba57df.tar.gz
src-6a88fb3ef8b0da18a694b9fd75e6000a91ba57df.zip
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
Notes
Notes: svn path=/head/; revision=289615
Diffstat (limited to 'sys/dev/ntb/if_ntb')
-rw-r--r--sys/dev/ntb/if_ntb/if_ntb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c
index 32642ddcaaaa..3f33628b4bbf 100644
--- a/sys/dev/ntb/if_ntb/if_ntb.c
+++ b/sys/dev/ntb/if_ntb/if_ntb.c
@@ -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) {