cnic: Fine-tune ring init code.
authorMichael Chan <mchan@broadcom.com>
Wed, 6 Oct 2010 03:17:22 +0000 (03:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2010 21:09:24 +0000 (14:09 -0700)
commit541a78103f097cd5120e55aaba56d099a64f153c
treed549c73642ae55c82daa59724bd806961af049fd
parent1420398db4d5e236583d3ab392637df255bd5c6b
cnic: Fine-tune ring init code.

Initialize the rings only during cnic_uio_open() and shut them down
during cnic_uio_close().  Check for the new bit CNIC_LCL_FL_RINGS_INITED
before checking for ring interrupt.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
drivers/net/cnic.h