summaryrefslogtreecommitdiff
path: root/drivers/net/cnic.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-05-18 15:32:52 +0400
committerDavid S. Miller <davem@davemloft.net>2010-05-19 02:16:44 +0400
commit1f1332a3cb7ac73e3bcff6ea42ff965c90a29d12 (patch)
treed0e3d63b8579831f2ad1ea6abdb9860f5f4893eb /drivers/net/cnic.h
parent57c8a456640fa3ca777652f11f2db4179a3e66b6 (diff)
downloadlinux-1f1332a3cb7ac73e3bcff6ea42ff965c90a29d12.tar.xz
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.h5
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 {
#define ULP_F_CALL_PENDING 2
struct cnic_ulp_ops *ulp_ops[MAX_CNIC_ULP_TYPE];
- /* protected by ulp_lock */
- u32 cnic_local_flags;
-#define CNIC_LCL_FL_KWQ_INIT 0x00000001
+ unsigned long cnic_local_flags;
+#define CNIC_LCL_FL_KWQ_INIT 0x0
struct cnic_dev *dev;