diff options
author | Michael Chan <mchan@broadcom.com> | 2010-05-18 07:32:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 18:16:44 -0400 |
commit | 1f1332a3cb7ac73e3bcff6ea42ff965c90a29d12 (patch) | |
tree | d0e3d63b8579831f2ad1ea6abdb9860f5f4893eb /drivers/net/cnic.h | |
parent | 57c8a456640fa3ca777652f11f2db4179a3e66b6 (diff) |
cnic: Convert cnic_local_flags to atomic ops.
It is easier to expand the flags for other purposes because it does
not require a spin_lock. The next bug fix patch needs a flag in
cnic_local_flags.
Signed-off-by: Michael Chan <mchan@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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/cnic.h b/drivers/net/cnic.h index a0d853dff983..4422497249d1 100644 --- a/drivers/net/cnic.h +++ b/drivers/net/cnic.h | |||
@@ -179,9 +179,8 @@ struct cnic_local { | |||
179 | #define ULP_F_CALL_PENDING 2 | 179 | #define ULP_F_CALL_PENDING 2 |
180 | struct cnic_ulp_ops *ulp_ops[MAX_CNIC_ULP_TYPE]; | 180 | struct cnic_ulp_ops *ulp_ops[MAX_CNIC_ULP_TYPE]; |
181 | 181 | ||
182 | /* protected by ulp_lock */ | 182 | unsigned long cnic_local_flags; |
183 | u32 cnic_local_flags; | 183 | #define CNIC_LCL_FL_KWQ_INIT 0x0 |
184 | #define CNIC_LCL_FL_KWQ_INIT 0x00000001 | ||
185 | 184 | ||
186 | struct cnic_dev *dev; | 185 | struct cnic_dev *dev; |
187 | 186 | ||