qp_detach
err = qp_detach(dev, &qp, gid, prot, type, reg_id);
qp_detach(dev, &qp, gid, prot, type, reg_id);