]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
via-velocity: move residual free rx descriptors count register update
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 10 Jul 2008 22:05:17 +0000 (00:05 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Jul 2008 05:10:15 +0000 (01:10 -0400)
commit28133176082d9bcafb5958b8fac80943e51d5eda
tree6b04bba488f4484769f2d92413253496e5a5729c
parent8ac53afccf7ab383fd97db8910117ae7892c72a7
via-velocity: move residual free rx descriptors count register update

Updates of the RBRDU have two different meanings depending on their
context:
1. the receiving process has not started - the value which is written
   into the RBRDU register is supposed to be the free rx descriptors
   count (rounded to a multiple of 4)
2. the receiving process is running - the value increments the count
   above (sic)

The update is currently issued deep inside the rx replenish chain (see
velocity_give_many_rx_descs).

Let's propagate enough information to the caller so that the rx
replenish functions do not depend on hardware any more.

It is needed to perform the Rx/Tx buffers housekeeping when MTU changes.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/via-velocity.c