]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fnic: print port speed only at driver init or speed change
authorJohn Pittman <jpittman@redhat.com>
Fri, 23 Aug 2019 14:08:52 +0000 (10:08 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Aug 2019 07:32:35 +0000 (03:32 -0400)
commit1065baa9df1888d3b6ce66bcd464339c1d25c545
treeec94d9304e7fcfb4f7b91ed49bdbb3b72a00d55c
parentaafa62e5dd20ed20f7fbe25281cb588d8805c5c4
scsi: fnic: print port speed only at driver init or speed change

Port speed printing was added by commit 6317e0f69148 ("scsi: fnic: Add port
speed stat to fnic debug stats"). As currently configured, this will cause
the port speed to be printed to syslog every 2 seconds. To prevent log
spamming, only print the vnic port speed at driver initialization and if
the speed changes. Also clean up a small typo in fnic_trace.c.

Fixes: 6317e0f69148 ("scsi: fnic: Add port speed stat to fnic debug stats")
Signed-off-by: John Pittman <jpittman@redhat.com>
Reviewed-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_fcs.c
drivers/scsi/fnic/fnic_trace.c