lkml.org 
[lkml]   [2009]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] synclink_gt dropped transmit data bugfix
On Tue, 08 Dec 2009 16:06:50 -0600
Paul Fulghum <paulkf@microgate.com> 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.


\
 
 \ /
  Last update: 2009-12-08 22:59    [W:0.031 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site