Re: [PATCH 1/3][BNX2]: Fix panic in bnx2_tx_int().

2006-12-14 Thread David Miller
From: Michael Chan [EMAIL PROTECTED] Date: Wed, 13 Dec 2006 18:30:33 -0800 [BNX2]: Fix panic in bnx2_tx_int(). There was an off-by-one bug in bnx2_tx_avail(). If the tx ring is completely full, the producer and consumer indices may be apart by 256 even though the ring size is only 255.

[PATCH 1/3][BNX2]: Fix panic in bnx2_tx_int().

2006-12-13 Thread Michael Chan
[BNX2]: Fix panic in bnx2_tx_int(). There was an off-by-one bug in bnx2_tx_avail(). If the tx ring is completely full, the producer and consumer indices may be apart by 256 even though the ring size is only 255. One entry in the ring is unused and must be properly accounted for when calculating