Fix bufsize calculation so that cxgbtool can display information for the

last I/O queue too.

MFC after:	3 days
This commit is contained in:
np 2010-07-09 00:35:09 +00:00
parent 0fac9c7272
commit 1ed3d6a605

View File

@ -3086,7 +3086,6 @@ cxgb_extension_ioctl(struct cdev *dev, unsigned long cmd, caddr_t data,
if (!error) {
v = (uint32_t *)buf;
ioqs->bufsize -= 4 * sizeof(uint32_t);
ioqs->ioq_rx_enable = *v++;
ioqs->ioq_tx_enable = *v++;
ioqs->ioq_rx_status = *v++;