cq.c (353816f43d1fb340ff2d9a911dd5d0799c09f6a5) | cq.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* 2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 353 unchanged lines hidden (view full) --- 362 goto out; 363 } 364 365 if (ibcq->uobject) { 366 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); 367 if (err) 368 goto out; 369 } else { | 1/* 2 * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 353 unchanged lines hidden (view full) --- 362 goto out; 363 } 364 365 if (ibcq->uobject) { 366 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); 367 if (err) 368 goto out; 369 } else { |
370 /* Can't be smaller then the number of outstanding CQEs */ | 370 /* Can't be smaller than the number of outstanding CQEs */ |
371 outst_cqe = mlx4_ib_get_outstanding_cqes(cq); 372 if (entries < outst_cqe + 1) { 373 err = 0; 374 goto out; 375 } 376 377 err = mlx4_alloc_resize_buf(dev, cq, entries); 378 if (err) --- 427 unchanged lines hidden --- | 371 outst_cqe = mlx4_ib_get_outstanding_cqes(cq); 372 if (entries < outst_cqe + 1) { 373 err = 0; 374 goto out; 375 } 376 377 err = mlx4_alloc_resize_buf(dev, cq, entries); 378 if (err) --- 427 unchanged lines hidden --- |