bnx2fc_fcoe.c (b9f12a5d97f652c77ef6803dccd0d40d1290f5be) | bnx2fc_fcoe.c (17d87c45b9042fa2f830c5a47cdfd3370bb60729) |
---|---|
1/* bnx2fc_fcoe.c: Broadcom NetXtreme II Linux FCoE offload driver. | 1/* bnx2fc_fcoe.c: QLogic NetXtreme II Linux FCoE offload driver. |
2 * This file contains the code that interacts with libfc, libfcoe, 3 * cnic modules to create FCoE instances, send/receive non-offloaded 4 * FIP/FCoE packets, listen to link events etc. 5 * 6 * Copyright (c) 2008 - 2013 Broadcom Corporation | 2 * This file contains the code that interacts with libfc, libfcoe, 3 * cnic modules to create FCoE instances, send/receive non-offloaded 4 * FIP/FCoE packets, listen to link events etc. 5 * 6 * Copyright (c) 2008 - 2013 Broadcom Corporation |
7 * Copyright (c) 2014, QLogic Corporation |
|
7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation. 11 * 12 * Written by: Bhanu Prakash Gollapudi (bprakash@broadcom.com) 13 */ 14 --- 6 unchanged lines hidden (view full) --- 21DEFINE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu); 22 23#define DRV_MODULE_NAME "bnx2fc" 24#define DRV_MODULE_VERSION BNX2FC_VERSION 25#define DRV_MODULE_RELDATE "Dec 11, 2013" 26 27 28static char version[] = | 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation. 12 * 13 * Written by: Bhanu Prakash Gollapudi (bprakash@broadcom.com) 14 */ 15 --- 6 unchanged lines hidden (view full) --- 22DEFINE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu); 23 24#define DRV_MODULE_NAME "bnx2fc" 25#define DRV_MODULE_VERSION BNX2FC_VERSION 26#define DRV_MODULE_RELDATE "Dec 11, 2013" 27 28 29static char version[] = |
29 "Broadcom NetXtreme II FCoE Driver " DRV_MODULE_NAME \ | 30 "QLogic NetXtreme II FCoE Driver " DRV_MODULE_NAME \ |
30 " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 31 32 33MODULE_AUTHOR("Bhanu Prakash Gollapudi <bprakash@broadcom.com>"); | 31 " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 32 33 34MODULE_AUTHOR("Bhanu Prakash Gollapudi <bprakash@broadcom.com>"); |
34MODULE_DESCRIPTION("Broadcom NetXtreme II BCM57710 FCoE Driver"); | 35MODULE_DESCRIPTION("QLogic NetXtreme II BCM57710 FCoE Driver"); |
35MODULE_LICENSE("GPL"); 36MODULE_VERSION(DRV_MODULE_VERSION); 37 38#define BNX2FC_MAX_QUEUE_DEPTH 256 39#define BNX2FC_MIN_QUEUE_DEPTH 32 40#define FCOE_WORD_TO_BYTE 4 41 42static struct scsi_transport_template *bnx2fc_transport_template; --- 644 unchanged lines hidden (view full) --- 687 rc = scsi_add_host(lport->host, dev); 688 if (rc) { 689 printk(KERN_ERR PFX "Error on scsi_add_host\n"); 690 return rc; 691 } 692 if (!lport->vport) 693 fc_host_max_npiv_vports(lport->host) = USHRT_MAX; 694 snprintf(fc_host_symbolic_name(lport->host), 256, | 36MODULE_LICENSE("GPL"); 37MODULE_VERSION(DRV_MODULE_VERSION); 38 39#define BNX2FC_MAX_QUEUE_DEPTH 256 40#define BNX2FC_MIN_QUEUE_DEPTH 32 41#define FCOE_WORD_TO_BYTE 4 42 43static struct scsi_transport_template *bnx2fc_transport_template; --- 644 unchanged lines hidden (view full) --- 688 rc = scsi_add_host(lport->host, dev); 689 if (rc) { 690 printk(KERN_ERR PFX "Error on scsi_add_host\n"); 691 return rc; 692 } 693 if (!lport->vport) 694 fc_host_max_npiv_vports(lport->host) = USHRT_MAX; 695 snprintf(fc_host_symbolic_name(lport->host), 256, |
695 "%s (Broadcom %s) v%s over %s", | 696 "%s (QLogic %s) v%s over %s", |
696 BNX2FC_NAME, hba->chip_num, BNX2FC_VERSION, 697 interface->netdev->name); 698 699 return 0; 700} 701 702static int bnx2fc_link_ok(struct fc_lport *lport) 703{ --- 2066 unchanged lines hidden (view full) --- 2770 .bsg_request = fc_lport_bsg_request, 2771}; 2772 2773/** 2774 * scsi_host_template structure used while registering with SCSI-ml 2775 */ 2776static struct scsi_host_template bnx2fc_shost_template = { 2777 .module = THIS_MODULE, | 697 BNX2FC_NAME, hba->chip_num, BNX2FC_VERSION, 698 interface->netdev->name); 699 700 return 0; 701} 702 703static int bnx2fc_link_ok(struct fc_lport *lport) 704{ --- 2066 unchanged lines hidden (view full) --- 2771 .bsg_request = fc_lport_bsg_request, 2772}; 2773 2774/** 2775 * scsi_host_template structure used while registering with SCSI-ml 2776 */ 2777static struct scsi_host_template bnx2fc_shost_template = { 2778 .module = THIS_MODULE, |
2778 .name = "Broadcom Offload FCoE Initiator", | 2779 .name = "QLogic Offload FCoE Initiator", |
2779 .queuecommand = bnx2fc_queuecommand, 2780 .eh_abort_handler = bnx2fc_eh_abort, /* abts */ 2781 .eh_device_reset_handler = bnx2fc_eh_device_reset, /* lun reset */ 2782 .eh_target_reset_handler = bnx2fc_eh_target_reset, /* tgt reset */ 2783 .eh_host_reset_handler = fc_eh_host_reset, 2784 .slave_alloc = fc_slave_alloc, 2785 .change_queue_depth = fc_change_queue_depth, 2786 .change_queue_type = fc_change_queue_type, --- 30 unchanged lines hidden --- | 2780 .queuecommand = bnx2fc_queuecommand, 2781 .eh_abort_handler = bnx2fc_eh_abort, /* abts */ 2782 .eh_device_reset_handler = bnx2fc_eh_device_reset, /* lun reset */ 2783 .eh_target_reset_handler = bnx2fc_eh_target_reset, /* tgt reset */ 2784 .eh_host_reset_handler = fc_eh_host_reset, 2785 .slave_alloc = fc_slave_alloc, 2786 .change_queue_depth = fc_change_queue_depth, 2787 .change_queue_type = fc_change_queue_type, --- 30 unchanged lines hidden --- |