From efd5acf04b06ca0008a0e59100d94d6927906ed6 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Sat, 14 Nov 2015 01:23:13 +0000 Subject: [PATCH] if_ntb: Clear the right QP in the free bitmap Now it can ping back and forth. Sponsored by: EMC / Isilon Storage Division --- sys/dev/ntb/if_ntb/if_ntb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c index 19490e4dcab..28f63056408 100644 --- a/sys/dev/ntb/if_ntb/if_ntb.c +++ b/sys/dev/ntb/if_ntb/if_ntb.c @@ -783,7 +783,7 @@ ntb_transport_create_queue(void *data, struct ntb_softc *ntb, free_queue--; qp = &nt->qp_vec[free_queue]; - clear_bit(1ull << qp->qp_num, &nt->qp_bitmap_free); + clear_bit(qp->qp_num, &nt->qp_bitmap_free); qp->cb_data = data; qp->rx_handler = handlers->rx_handler; qp->tx_handler = handlers->tx_handler;