diff options
author | Michael Chan <mchan@broadcom.com> | 2010-05-18 11:32:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 15:16:44 -0700 |
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 a0d853dff98..4422497249d 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; |