NIU: Implement discard counters, optimize
commite98def1f71fa0a6a37e12a56eb52ce5ed9e2e800
authorJesper Dangaard Brouer <hawk@comx.dk>
Fri, 19 Dec 2008 03:51:56 +0000 (18 19:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Dec 2008 06:27:41 +0000 (18 22:27 -0800)
tree575063ef3b8ab38c762fcb86cce75ac0abc84c3f
parentd231776fda4a1ed754298720c5fbc29eb34f130c
NIU: Implement discard counters, optimize

Optimize the lightly loaded case, by only synchronizing discards stats
when qlen > 10 indicate potential for drops.

Notice Robert Olsson might disagree with this patch.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c