[BNX2]: Fix bug when rx ring is full
authorMichael Chan <mchan@broadcom.com>
Tue, 21 Mar 2006 01:49:02 +0000 (17:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:49:02 +0000 (17:49 -0800)
commit236b6394bb49ea58465c6f935a286d2342576f8d
treee00c64b5dcb909e3e700021f6c2368af55f0641c
parent244ac4f446ac6a19caf5eb692c4844f29e6478bf
[BNX2]: Fix bug when rx ring is full

Fix the rx code path that does not handle the full rx ring correctly.

When the rx ring is set to the max. size (i.e. 255), the consumer and
producer indices will be the same when completing an rx packet. Fix
the rx code to handle this condition properly.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c