bnx2fc_percpu_s is a bnx2fc specific structure that manages IO threads used to process IO completions. Renamed it for consistency.
Signed-off-by: Nithin Nayak Sujir <[email protected]> Signed-off-by: Bhanu Prakash Gollapudi <[email protected]> --- drivers/scsi/bnx2fc/bnx2fc.h | 2 +- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 10 +++++----- drivers/scsi/bnx2fc/bnx2fc_hwi.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h index df546e3..d96acb6 100644 --- a/drivers/scsi/bnx2fc/bnx2fc.h +++ b/drivers/scsi/bnx2fc/bnx2fc.h @@ -142,7 +142,7 @@ struct bnx2fc_global_s { }; extern struct bnx2fc_global_s bnx2fc_global; -struct fcoe_percpu_s { +struct bnx2fc_percpu_s { struct task_struct *thread; struct list_head work_list; spinlock_t fp_work_lock; diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index f800129..f52efea 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -17,7 +17,7 @@ static struct list_head adapter_list; static u32 adapter_count; static DEFINE_MUTEX(bnx2fc_dev_lock); -DEFINE_PER_CPU(struct fcoe_percpu_s, bnx2fc_percpu); +DEFINE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu); #define DRV_MODULE_NAME "bnx2fc" #define DRV_MODULE_VERSION BNX2FC_VERSION @@ -625,7 +625,7 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) */ int bnx2fc_percpu_io_thread(void *arg) { - struct fcoe_percpu_s *p = arg; + struct bnx2fc_percpu_s *p = arg; struct bnx2fc_work *work, *tmp; LIST_HEAD(work_list); @@ -2216,7 +2216,7 @@ static struct fcoe_transport bnx2fc_transport = { */ static void bnx2fc_percpu_thread_create(unsigned int cpu) { - struct fcoe_percpu_s *p; + struct bnx2fc_percpu_s *p; struct task_struct *thread; p = &per_cpu(bnx2fc_percpu, cpu); @@ -2234,7 +2234,7 @@ static void bnx2fc_percpu_thread_create(unsigned int cpu) static void bnx2fc_percpu_thread_destroy(unsigned int cpu) { - struct fcoe_percpu_s *p; + struct bnx2fc_percpu_s *p; struct task_struct *thread; struct bnx2fc_work *work, *tmp; LIST_HEAD(work_list); @@ -2306,7 +2306,7 @@ static int __init bnx2fc_mod_init(void) struct task_struct *l2_thread; int rc = 0; unsigned int cpu = 0; - struct fcoe_percpu_s *p; + struct bnx2fc_percpu_s *p; printk(KERN_INFO PFX "%s", version); diff --git a/drivers/scsi/bnx2fc/bnx2fc_hwi.c b/drivers/scsi/bnx2fc/bnx2fc_hwi.c index 4f56f9a..6030114 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_hwi.c +++ b/drivers/scsi/bnx2fc/bnx2fc_hwi.c @@ -13,7 +13,7 @@ #include "bnx2fc.h" -DECLARE_PER_CPU(struct fcoe_percpu_s, bnx2fc_percpu); +DECLARE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu); static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba, struct fcoe_kcqe *new_cqe_kcqe); @@ -917,7 +917,7 @@ int bnx2fc_process_new_cqes(struct bnx2fc_rport *tgt) bnx2fc_process_unsol_compl(tgt, wqe); } else { struct bnx2fc_work *work = NULL; - struct fcoe_percpu_s *fps = NULL; + struct bnx2fc_percpu_s *fps = NULL; unsigned int cpu = wqe % num_possible_cpus(); fps = &per_cpu(bnx2fc_percpu, cpu); -- 1.7.0.6 _______________________________________________ devel mailing list [email protected] https://lists.open-fcoe.org/mailman/listinfo/devel
