Re: [PATCH] synclink_gt dropped transmit data bugfix

From: Andrew Morton
Date: Tue Dec 08 2009 - 16:56:23 EST


On Tue, 08 Dec 2009 16:06:50 -0600
Paul Fulghum <paulkf@xxxxxxxxxxxxx> wrote:

> + /* check required buffer space */
> + bufs_needed = (size/DMABUFSIZE);
> + if (size % DMABUFSIZE)
> + ++bufs_needed;

bufs_needed = DIV_ROUND_UP(size, DMABUFSIZE);

?


That unsent_tbufs() call looks like it might be expensive.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/