10
10
#include <linux/netdevice.h>
11
11
#include <linux/workqueue.h>
12
12
#include <linux/bitops.h>
13
- #include <scsi/libfc.h>
14
- #include <scsi/libfcoe.h>
15
13
#include <scsi/scsi_cmnd.h>
16
14
#include <scsi/scsi_transport.h>
17
15
#include <scsi/scsi_transport_fc.h>
@@ -346,8 +344,6 @@ struct fnic {
346
344
enum fnic_role_e role ;
347
345
struct fnic_iport_s iport ;
348
346
struct Scsi_Host * host ;
349
- struct fc_lport * lport ;
350
- struct fcoe_ctlr ctlr ; /* FIP FCoE controller structure */
351
347
struct vnic_dev_bar bar0 ;
352
348
353
349
struct fnic_msix_entry msix [FNIC_MSIX_INTR_MAX ];
@@ -380,9 +376,6 @@ struct fnic {
380
376
u32 vlan_hw_insert :1 ; /* let hw insert the tag */
381
377
u32 in_remove :1 ; /* fnic device in removal */
382
378
u32 stop_rx_link_events :1 ; /* stop proc. rx frames, link events */
383
- u32 link_events :1 ; /* set when we get any link event*/
384
-
385
- struct completion * remove_wait ; /* device remove thread blocks */
386
379
387
380
struct completion * fw_reset_done ;
388
381
u32 reset_in_progress ;
@@ -572,7 +565,7 @@ fnic_scsi_io_iter(struct fnic *fnic,
572
565
.data1 = data1 ,
573
566
.data2 = data2 ,
574
567
};
575
- scsi_host_busy_iter (fnic -> lport -> host , fnic_io_iter_handler , & iter_data );
568
+ scsi_host_busy_iter (fnic -> host , fnic_io_iter_handler , & iter_data );
576
569
}
577
570
578
571
#ifdef FNIC_DEBUG
@@ -582,7 +575,7 @@ fnic_debug_dump(struct fnic *fnic, uint8_t *u8arr, int len)
582
575
int i ;
583
576
584
577
for (i = 0 ; i < len ; i = i + 8 ) {
585
- FNIC_FCS_DBG (KERN_DEBUG , fnic -> lport -> host , fnic -> fnic_num ,
578
+ FNIC_FCS_DBG (KERN_DEBUG , fnic -> host , fnic -> fnic_num ,
586
579
"%d: %02x %02x %02x %02x %02x %02x %02x %02x" , i / 8 ,
587
580
u8arr [i + 0 ], u8arr [i + 1 ], u8arr [i + 2 ], u8arr [i + 3 ],
588
581
u8arr [i + 4 ], u8arr [i + 5 ], u8arr [i + 6 ], u8arr [i + 7 ]);
@@ -597,7 +590,7 @@ fnic_debug_dump_fc_frame(struct fnic *fnic, struct fc_frame_header *fchdr,
597
590
598
591
s_id = ntoh24 (fchdr -> fh_s_id );
599
592
d_id = ntoh24 (fchdr -> fh_d_id );
600
- FNIC_FCS_DBG (KERN_DEBUG , fnic -> lport -> host , fnic -> fnic_num ,
593
+ FNIC_FCS_DBG (KERN_DEBUG , fnic -> host , fnic -> fnic_num ,
601
594
"%s packet contents: sid/did/type/oxid = 0x%x/0x%x/0x%x/0x%x (len = %d)\n" ,
602
595
pfx , s_id , d_id , fchdr -> fh_type ,
603
596
FNIC_STD_GET_OX_ID (fchdr ), len );
0 commit comments