diff options
author | Michael Chan <mchan@broadcom.com> | 2012-03-21 15:38:33 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-21 21:57:36 -0400 |
commit | 7ae5289017e5ed5514b2603d157fb54c058a3c82 (patch) | |
tree | 3ab4c34f95aced979df8ad5e7be721996f5911b1 /drivers/scsi/bnx2i/57xx_iscsi_constants.h | |
parent | 5676cc7bfe1e388e87843f71daa229610385b41e (diff) |
tg3: Fix RSS ring refill race condition
The RSS feature in tg3 hardware has only one rx producer ring for all
RSS rings. NAPI vector 1 is special and handles the refilling of the
rx producer ring on behalf of all RSS rings. There is a race condition
between these RSS NAPIs and the NAPI[1]. If NAPI[1] finishes checking
for refill and then another RSS ring empties the rx producer ring
before NAPI[1] exits NAPI, the chip will be completely out of SKBs in
the rx producer ring.
We fix this by adding a flag tp->rx_refill and rely on napi_schedule()/
napi_complete() to help synchronize it to close the race condition.
Update driver version to 3.123.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/bnx2i/57xx_iscsi_constants.h')
0 files changed, 0 insertions, 0 deletions