diff options
author | Michael Chan <mchan@broadcom.com> | 2010-10-05 23:17:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:09:24 -0400 |
commit | 541a78103f097cd5120e55aaba56d099a64f153c (patch) | |
tree | d549c73642ae55c82daa59724bd806961af049fd /drivers/net/cnic.h | |
parent | 1420398db4d5e236583d3ab392637df255bd5c6b (diff) |
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>
Diffstat (limited to 'drivers/net/cnic.h')
-rw-r--r-- | drivers/net/cnic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cnic.h b/drivers/net/cnic.h index ef2c25e4962d..481618399b1f 100644 --- a/drivers/net/cnic.h +++ b/drivers/net/cnic.h | |||
@@ -192,6 +192,7 @@ struct cnic_local { | |||
192 | unsigned long cnic_local_flags; | 192 | unsigned long cnic_local_flags; |
193 | #define CNIC_LCL_FL_KWQ_INIT 0x0 | 193 | #define CNIC_LCL_FL_KWQ_INIT 0x0 |
194 | #define CNIC_LCL_FL_L2_WAIT 0x1 | 194 | #define CNIC_LCL_FL_L2_WAIT 0x1 |
195 | #define CNIC_LCL_FL_RINGS_INITED 0x2 | ||
195 | 196 | ||
196 | struct cnic_dev *dev; | 197 | struct cnic_dev *dev; |
197 | 198 | ||