2 * Copyright 2012 Cisco Systems, Inc. All rights reserved.
4 * This program is free software; you may redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
9 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
11 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
12 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
13 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18 #include <linux/module.h>
19 #include <linux/errno.h>
20 #include <linux/debugfs.h>
21 #include <linux/vmalloc.h>
24 static struct dentry
*fnic_trace_debugfs_root
;
25 static struct dentry
*fnic_trace_debugfs_file
;
26 static struct dentry
*fnic_trace_enable
;
27 static struct dentry
*fnic_stats_debugfs_root
;
29 static struct dentry
*fnic_fc_trace_debugfs_file
;
30 static struct dentry
*fnic_fc_rdata_trace_debugfs_file
;
31 static struct dentry
*fnic_fc_trace_enable
;
32 static struct dentry
*fnic_fc_trace_clear
;
34 struct fc_trace_flag_type
{
42 static struct fc_trace_flag_type
*fc_trc_flag
;
45 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
48 * When Debugfs is configured this routine sets up the fnic debugfs
49 * file system. If not already created, this routine will create the
50 * fnic directory and statistics directory for trace buffer and
53 int fnic_debugfs_init(void)
56 fnic_trace_debugfs_root
= debugfs_create_dir("fnic", NULL
);
57 if (!fnic_trace_debugfs_root
) {
58 printk(KERN_DEBUG
"Cannot create debugfs root\n");
62 if (!fnic_trace_debugfs_root
) {
64 "fnic root directory doesn't exist in debugfs\n");
68 fnic_stats_debugfs_root
= debugfs_create_dir("statistics",
69 fnic_trace_debugfs_root
);
70 if (!fnic_stats_debugfs_root
) {
71 printk(KERN_DEBUG
"Cannot create Statistics directory\n");
75 /* Allocate memory to structure */
76 fc_trc_flag
= (struct fc_trace_flag_type
*)
77 vmalloc(sizeof(struct fc_trace_flag_type
));
80 fc_trc_flag
->fc_row_file
= 0;
81 fc_trc_flag
->fc_normal_file
= 1;
82 fc_trc_flag
->fnic_trace
= 2;
83 fc_trc_flag
->fc_trace
= 3;
84 fc_trc_flag
->fc_clear
= 4;
92 * fnic_debugfs_terminate - Tear down debugfs infrastructure
95 * When Debugfs is configured this routine removes debugfs file system
96 * elements that are specific to fnic.
98 void fnic_debugfs_terminate(void)
100 debugfs_remove(fnic_stats_debugfs_root
);
101 fnic_stats_debugfs_root
= NULL
;
103 debugfs_remove(fnic_trace_debugfs_root
);
104 fnic_trace_debugfs_root
= NULL
;
111 * fnic_trace_ctrl_read -
112 * Read trace_enable ,fc_trace_enable
113 * or fc_trace_clear debugfs file
114 * @filp: The file pointer to read from.
115 * @ubuf: The buffer to copy the data to.
116 * @cnt: The number of bytes to read.
117 * @ppos: The position in the file to start reading from.
120 * This routine reads value of variable fnic_tracing_enabled or
121 * fnic_fc_tracing_enabled or fnic_fc_trace_cleared
122 * and stores into local @buf.
123 * It will start reading file at @ppos and
124 * copy up to @cnt of data to @ubuf from @buf.
127 * This function returns the amount of data that was read.
129 static ssize_t
fnic_trace_ctrl_read(struct file
*filp
,
131 size_t cnt
, loff_t
*ppos
)
137 trace_type
= (u8
*)filp
->private_data
;
138 if (*trace_type
== fc_trc_flag
->fnic_trace
)
139 len
= sprintf(buf
, "%u\n", fnic_tracing_enabled
);
140 else if (*trace_type
== fc_trc_flag
->fc_trace
)
141 len
= sprintf(buf
, "%u\n", fnic_fc_tracing_enabled
);
142 else if (*trace_type
== fc_trc_flag
->fc_clear
)
143 len
= sprintf(buf
, "%u\n", fnic_fc_trace_cleared
);
145 pr_err("fnic: Cannot read to any debugfs file\n");
147 return simple_read_from_buffer(ubuf
, cnt
, ppos
, buf
, len
);
151 * fnic_trace_ctrl_write -
152 * Write to trace_enable, fc_trace_enable or
153 * fc_trace_clear debugfs file
154 * @filp: The file pointer to write from.
155 * @ubuf: The buffer to copy the data from.
156 * @cnt: The number of bytes to write.
157 * @ppos: The position in the file to start writing to.
160 * This routine writes data from user buffer @ubuf to buffer @buf and
161 * sets fc_trace_enable ,tracing_enable or fnic_fc_trace_cleared
162 * value as per user input.
165 * This function returns the amount of data that was written.
167 static ssize_t
fnic_trace_ctrl_write(struct file
*filp
,
168 const char __user
*ubuf
,
169 size_t cnt
, loff_t
*ppos
)
175 trace_type
= (u8
*)filp
->private_data
;
177 if (cnt
>= sizeof(buf
))
180 if (copy_from_user(&buf
, ubuf
, cnt
))
185 ret
= kstrtoul(buf
, 10, &val
);
189 if (*trace_type
== fc_trc_flag
->fnic_trace
)
190 fnic_tracing_enabled
= val
;
191 else if (*trace_type
== fc_trc_flag
->fc_trace
)
192 fnic_fc_tracing_enabled
= val
;
193 else if (*trace_type
== fc_trc_flag
->fc_clear
)
194 fnic_fc_trace_cleared
= val
;
196 pr_err("fnic: cannot write to any debugfs file\n");
203 static const struct file_operations fnic_trace_ctrl_fops
= {
204 .owner
= THIS_MODULE
,
206 .read
= fnic_trace_ctrl_read
,
207 .write
= fnic_trace_ctrl_write
,
211 * fnic_trace_debugfs_open - Open the fnic trace log
212 * @inode: The inode pointer
213 * @file: The file pointer to attach the log output
216 * This routine is the entry point for the debugfs open file operation.
217 * It allocates the necessary buffer for the log, fills the buffer from
218 * the in-memory log and then returns a pointer to that log in
219 * the private_data field in @file.
222 * This function returns zero if successful. On error it will return
223 * a negative error value.
225 static int fnic_trace_debugfs_open(struct inode
*inode
,
228 fnic_dbgfs_t
*fnic_dbg_prt
;
230 rdata_ptr
= (u8
*)inode
->i_private
;
231 fnic_dbg_prt
= kzalloc(sizeof(fnic_dbgfs_t
), GFP_KERNEL
);
235 if (*rdata_ptr
== fc_trc_flag
->fnic_trace
) {
236 fnic_dbg_prt
->buffer
= vmalloc(3 *
237 (trace_max_pages
* PAGE_SIZE
));
238 if (!fnic_dbg_prt
->buffer
) {
242 memset((void *)fnic_dbg_prt
->buffer
, 0,
243 3 * (trace_max_pages
* PAGE_SIZE
));
244 fnic_dbg_prt
->buffer_len
= fnic_get_trace_data(fnic_dbg_prt
);
246 fnic_dbg_prt
->buffer
=
247 vmalloc(3 * (fnic_fc_trace_max_pages
* PAGE_SIZE
));
248 if (!fnic_dbg_prt
->buffer
) {
252 memset((void *)fnic_dbg_prt
->buffer
, 0,
253 3 * (fnic_fc_trace_max_pages
* PAGE_SIZE
));
254 fnic_dbg_prt
->buffer_len
=
255 fnic_fc_trace_get_data(fnic_dbg_prt
, *rdata_ptr
);
257 file
->private_data
= fnic_dbg_prt
;
263 * fnic_trace_debugfs_lseek - Seek through a debugfs file
264 * @file: The file pointer to seek through.
265 * @offset: The offset to seek to or the amount to seek by.
266 * @howto: Indicates how to seek.
269 * This routine is the entry point for the debugfs lseek file operation.
270 * The @howto parameter indicates whether @offset is the offset to directly
271 * seek to, or if it is a value to seek forward or reverse by. This function
272 * figures out what the new offset of the debugfs file will be and assigns
273 * that value to the f_pos field of @file.
276 * This function returns the new offset if successful and returns a negative
277 * error if unable to process the seek.
279 static loff_t
fnic_trace_debugfs_lseek(struct file
*file
,
283 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
284 return fixed_size_llseek(file
, offset
, howto
,
285 fnic_dbg_prt
->buffer_len
);
289 * fnic_trace_debugfs_read - Read a debugfs file
290 * @file: The file pointer to read from.
291 * @ubuf: The buffer to copy the data to.
292 * @nbytes: The number of bytes to read.
293 * @pos: The position in the file to start reading from.
296 * This routine reads data from the buffer indicated in the private_data
297 * field of @file. It will start reading at @pos and copy up to @nbytes of
301 * This function returns the amount of data that was read (this could be
302 * less than @nbytes if the end of the file was reached).
304 static ssize_t
fnic_trace_debugfs_read(struct file
*file
,
309 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
311 rc
= simple_read_from_buffer(ubuf
, nbytes
, pos
,
312 fnic_dbg_prt
->buffer
,
313 fnic_dbg_prt
->buffer_len
);
318 * fnic_trace_debugfs_release - Release the buffer used to store
320 * @inode: The inode pointer
321 * @file: The file pointer that contains the buffer to release
324 * This routine frees the buffer that was allocated when the debugfs
328 * This function returns zero.
330 static int fnic_trace_debugfs_release(struct inode
*inode
,
333 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
335 vfree(fnic_dbg_prt
->buffer
);
340 static const struct file_operations fnic_trace_debugfs_fops
= {
341 .owner
= THIS_MODULE
,
342 .open
= fnic_trace_debugfs_open
,
343 .llseek
= fnic_trace_debugfs_lseek
,
344 .read
= fnic_trace_debugfs_read
,
345 .release
= fnic_trace_debugfs_release
,
349 * fnic_trace_debugfs_init - Initialize debugfs for fnic trace logging
352 * When Debugfs is configured this routine sets up the fnic debugfs
353 * file system. If not already created, this routine will create the
354 * create file trace to log fnic trace buffer output into debugfs and
355 * it will also create file trace_enable to control enable/disable of
356 * trace logging into trace buffer.
358 int fnic_trace_debugfs_init(void)
361 if (!fnic_trace_debugfs_root
) {
363 "FNIC Debugfs root directory doesn't exist\n");
366 fnic_trace_enable
= debugfs_create_file("tracing_enable",
367 S_IFREG
|S_IRUGO
|S_IWUSR
,
368 fnic_trace_debugfs_root
,
369 &(fc_trc_flag
->fnic_trace
),
370 &fnic_trace_ctrl_fops
);
372 if (!fnic_trace_enable
) {
374 "Cannot create trace_enable file under debugfs\n");
378 fnic_trace_debugfs_file
= debugfs_create_file("trace",
379 S_IFREG
|S_IRUGO
|S_IWUSR
,
380 fnic_trace_debugfs_root
,
381 &(fc_trc_flag
->fnic_trace
),
382 &fnic_trace_debugfs_fops
);
384 if (!fnic_trace_debugfs_file
) {
386 "Cannot create trace file under debugfs\n");
394 * fnic_trace_debugfs_terminate - Tear down debugfs infrastructure
397 * When Debugfs is configured this routine removes debugfs file system
398 * elements that are specific to fnic trace logging.
400 void fnic_trace_debugfs_terminate(void)
402 debugfs_remove(fnic_trace_debugfs_file
);
403 fnic_trace_debugfs_file
= NULL
;
405 debugfs_remove(fnic_trace_enable
);
406 fnic_trace_enable
= NULL
;
410 * fnic_fc_trace_debugfs_init -
411 * Initialize debugfs for fnic control frame trace logging
414 * When Debugfs is configured this routine sets up the fnic_fc debugfs
415 * file system. If not already created, this routine will create the
416 * create file trace to log fnic fc trace buffer output into debugfs and
417 * it will also create file fc_trace_enable to control enable/disable of
418 * trace logging into trace buffer.
421 int fnic_fc_trace_debugfs_init(void)
425 if (!fnic_trace_debugfs_root
) {
426 pr_err("fnic:Debugfs root directory doesn't exist\n");
430 fnic_fc_trace_enable
= debugfs_create_file("fc_trace_enable",
431 S_IFREG
|S_IRUGO
|S_IWUSR
,
432 fnic_trace_debugfs_root
,
433 &(fc_trc_flag
->fc_trace
),
434 &fnic_trace_ctrl_fops
);
436 if (!fnic_fc_trace_enable
) {
437 pr_err("fnic: Failed create fc_trace_enable file\n");
441 fnic_fc_trace_clear
= debugfs_create_file("fc_trace_clear",
442 S_IFREG
|S_IRUGO
|S_IWUSR
,
443 fnic_trace_debugfs_root
,
444 &(fc_trc_flag
->fc_clear
),
445 &fnic_trace_ctrl_fops
);
447 if (!fnic_fc_trace_clear
) {
448 pr_err("fnic: Failed to create fc_trace_enable file\n");
452 fnic_fc_rdata_trace_debugfs_file
=
453 debugfs_create_file("fc_trace_rdata",
454 S_IFREG
|S_IRUGO
|S_IWUSR
,
455 fnic_trace_debugfs_root
,
456 &(fc_trc_flag
->fc_normal_file
),
457 &fnic_trace_debugfs_fops
);
459 if (!fnic_fc_rdata_trace_debugfs_file
) {
460 pr_err("fnic: Failed create fc_rdata_trace file\n");
464 fnic_fc_trace_debugfs_file
=
465 debugfs_create_file("fc_trace",
466 S_IFREG
|S_IRUGO
|S_IWUSR
,
467 fnic_trace_debugfs_root
,
468 &(fc_trc_flag
->fc_row_file
),
469 &fnic_trace_debugfs_fops
);
471 if (!fnic_fc_trace_debugfs_file
) {
472 pr_err("fnic: Failed to create fc_trace file\n");
480 * fnic_fc_trace_debugfs_terminate - Tear down debugfs infrastructure
483 * When Debugfs is configured this routine removes debugfs file system
484 * elements that are specific to fnic_fc trace logging.
487 void fnic_fc_trace_debugfs_terminate(void)
489 debugfs_remove(fnic_fc_trace_debugfs_file
);
490 fnic_fc_trace_debugfs_file
= NULL
;
492 debugfs_remove(fnic_fc_rdata_trace_debugfs_file
);
493 fnic_fc_rdata_trace_debugfs_file
= NULL
;
495 debugfs_remove(fnic_fc_trace_enable
);
496 fnic_fc_trace_enable
= NULL
;
498 debugfs_remove(fnic_fc_trace_clear
);
499 fnic_fc_trace_clear
= NULL
;
503 * fnic_reset_stats_open - Open the reset_stats file
504 * @inode: The inode pointer.
505 * @file: The file pointer to attach the stats reset flag.
508 * This routine opens a debugsfs file reset_stats and stores i_private data
509 * to debug structure to retrieve later for while performing other
513 * This function returns zero if successful.
515 static int fnic_reset_stats_open(struct inode
*inode
, struct file
*file
)
517 struct stats_debug_info
*debug
;
519 debug
= kzalloc(sizeof(struct stats_debug_info
), GFP_KERNEL
);
523 debug
->i_private
= inode
->i_private
;
525 file
->private_data
= debug
;
531 * fnic_reset_stats_read - Read a reset_stats debugfs file
532 * @filp: The file pointer to read from.
533 * @ubuf: The buffer to copy the data to.
534 * @cnt: The number of bytes to read.
535 * @ppos: The position in the file to start reading from.
538 * This routine reads value of variable reset_stats
539 * and stores into local @buf. It will start reading file at @ppos and
540 * copy up to @cnt of data to @ubuf from @buf.
543 * This function returns the amount of data that was read.
545 static ssize_t
fnic_reset_stats_read(struct file
*file
,
547 size_t cnt
, loff_t
*ppos
)
549 struct stats_debug_info
*debug
= file
->private_data
;
550 struct fnic
*fnic
= (struct fnic
*)debug
->i_private
;
554 len
= sprintf(buf
, "%u\n", fnic
->reset_stats
);
556 return simple_read_from_buffer(ubuf
, cnt
, ppos
, buf
, len
);
560 * fnic_reset_stats_write - Write to reset_stats debugfs file
561 * @filp: The file pointer to write from.
562 * @ubuf: The buffer to copy the data from.
563 * @cnt: The number of bytes to write.
564 * @ppos: The position in the file to start writing to.
567 * This routine writes data from user buffer @ubuf to buffer @buf and
568 * resets cumulative stats of fnic.
571 * This function returns the amount of data that was written.
573 static ssize_t
fnic_reset_stats_write(struct file
*file
,
574 const char __user
*ubuf
,
575 size_t cnt
, loff_t
*ppos
)
577 struct stats_debug_info
*debug
= file
->private_data
;
578 struct fnic
*fnic
= (struct fnic
*)debug
->i_private
;
579 struct fnic_stats
*stats
= &fnic
->fnic_stats
;
580 u64
*io_stats_p
= (u64
*)&stats
->io_stats
;
581 u64
*fw_stats_p
= (u64
*)&stats
->fw_stats
;
586 if (cnt
>= sizeof(buf
))
589 if (copy_from_user(&buf
, ubuf
, cnt
))
594 ret
= kstrtoul(buf
, 10, &val
);
598 fnic
->reset_stats
= val
;
600 if (fnic
->reset_stats
) {
601 /* Skip variable is used to avoid descrepancies to Num IOs
602 * and IO Completions stats. Skip incrementing No IO Compls
603 * for pending active IOs after reset stats
605 atomic64_set(&fnic
->io_cmpl_skip
,
606 atomic64_read(&stats
->io_stats
.active_ios
));
607 memset(&stats
->abts_stats
, 0, sizeof(struct abort_stats
));
608 memset(&stats
->term_stats
, 0,
609 sizeof(struct terminate_stats
));
610 memset(&stats
->reset_stats
, 0, sizeof(struct reset_stats
));
611 memset(&stats
->misc_stats
, 0, sizeof(struct misc_stats
));
612 memset(&stats
->vlan_stats
, 0, sizeof(struct vlan_stats
));
613 memset(io_stats_p
+1, 0,
614 sizeof(struct io_path_stats
) - sizeof(u64
));
615 memset(fw_stats_p
+1, 0,
616 sizeof(struct fw_stats
) - sizeof(u64
));
617 ktime_get_real_ts64(&stats
->stats_timestamps
.last_reset_time
);
625 * fnic_reset_stats_release - Release the buffer used to store
627 * @inode: The inode pointer
628 * @file: The file pointer that contains the buffer to release
631 * This routine frees the buffer that was allocated when the debugfs
635 * This function returns zero.
637 static int fnic_reset_stats_release(struct inode
*inode
,
640 struct stats_debug_info
*debug
= file
->private_data
;
646 * fnic_stats_debugfs_open - Open the stats file for specific host
647 * and get fnic stats.
648 * @inode: The inode pointer.
649 * @file: The file pointer to attach the specific host statistics.
652 * This routine opens a debugsfs file stats of specific host and print
656 * This function returns zero if successful.
658 static int fnic_stats_debugfs_open(struct inode
*inode
,
661 struct fnic
*fnic
= inode
->i_private
;
662 struct fnic_stats
*fnic_stats
= &fnic
->fnic_stats
;
663 struct stats_debug_info
*debug
;
664 int buf_size
= 2 * PAGE_SIZE
;
666 debug
= kzalloc(sizeof(struct stats_debug_info
), GFP_KERNEL
);
670 debug
->debug_buffer
= vmalloc(buf_size
);
671 if (!debug
->debug_buffer
) {
676 debug
->buf_size
= buf_size
;
677 memset((void *)debug
->debug_buffer
, 0, buf_size
);
678 debug
->buffer_len
= fnic_get_stats_data(debug
, fnic_stats
);
680 file
->private_data
= debug
;
686 * fnic_stats_debugfs_read - Read a debugfs file
687 * @file: The file pointer to read from.
688 * @ubuf: The buffer to copy the data to.
689 * @nbytes: The number of bytes to read.
690 * @pos: The position in the file to start reading from.
693 * This routine reads data from the buffer indicated in the private_data
694 * field of @file. It will start reading at @pos and copy up to @nbytes of
698 * This function returns the amount of data that was read (this could be
699 * less than @nbytes if the end of the file was reached).
701 static ssize_t
fnic_stats_debugfs_read(struct file
*file
,
706 struct stats_debug_info
*debug
= file
->private_data
;
708 rc
= simple_read_from_buffer(ubuf
, nbytes
, pos
,
715 * fnic_stats_stats_release - Release the buffer used to store
717 * @inode: The inode pointer
718 * @file: The file pointer that contains the buffer to release
721 * This routine frees the buffer that was allocated when the debugfs
725 * This function returns zero.
727 static int fnic_stats_debugfs_release(struct inode
*inode
,
730 struct stats_debug_info
*debug
= file
->private_data
;
731 vfree(debug
->debug_buffer
);
736 static const struct file_operations fnic_stats_debugfs_fops
= {
737 .owner
= THIS_MODULE
,
738 .open
= fnic_stats_debugfs_open
,
739 .read
= fnic_stats_debugfs_read
,
740 .release
= fnic_stats_debugfs_release
,
743 static const struct file_operations fnic_reset_debugfs_fops
= {
744 .owner
= THIS_MODULE
,
745 .open
= fnic_reset_stats_open
,
746 .read
= fnic_reset_stats_read
,
747 .write
= fnic_reset_stats_write
,
748 .release
= fnic_reset_stats_release
,
752 * fnic_stats_init - Initialize stats struct and create stats file per fnic
755 * When Debugfs is configured this routine sets up the stats file per fnic
756 * It will create file stats and reset_stats under statistics/host# directory
757 * to log per fnic stats.
759 int fnic_stats_debugfs_init(struct fnic
*fnic
)
764 snprintf(name
, sizeof(name
), "host%d", fnic
->lport
->host
->host_no
);
766 if (!fnic_stats_debugfs_root
) {
767 printk(KERN_DEBUG
"fnic_stats root doesn't exist\n");
770 fnic
->fnic_stats_debugfs_host
= debugfs_create_dir(name
,
771 fnic_stats_debugfs_root
);
772 if (!fnic
->fnic_stats_debugfs_host
) {
773 printk(KERN_DEBUG
"Cannot create host directory\n");
777 fnic
->fnic_stats_debugfs_file
= debugfs_create_file("stats",
778 S_IFREG
|S_IRUGO
|S_IWUSR
,
779 fnic
->fnic_stats_debugfs_host
,
781 &fnic_stats_debugfs_fops
);
782 if (!fnic
->fnic_stats_debugfs_file
) {
783 printk(KERN_DEBUG
"Cannot create host stats file\n");
787 fnic
->fnic_reset_debugfs_file
= debugfs_create_file("reset_stats",
788 S_IFREG
|S_IRUGO
|S_IWUSR
,
789 fnic
->fnic_stats_debugfs_host
,
791 &fnic_reset_debugfs_fops
);
792 if (!fnic
->fnic_reset_debugfs_file
) {
793 printk(KERN_DEBUG
"Cannot create host stats file\n");
801 * fnic_stats_debugfs_remove - Tear down debugfs infrastructure of stats
804 * When Debugfs is configured this routine removes debugfs file system
805 * elements that are specific to fnic stats.
807 void fnic_stats_debugfs_remove(struct fnic
*fnic
)
812 debugfs_remove(fnic
->fnic_stats_debugfs_file
);
813 fnic
->fnic_stats_debugfs_file
= NULL
;
815 debugfs_remove(fnic
->fnic_reset_debugfs_file
);
816 fnic
->fnic_reset_debugfs_file
= NULL
;
818 debugfs_remove(fnic
->fnic_stats_debugfs_host
);
819 fnic
->fnic_stats_debugfs_host
= NULL
;