James Smart
e3ba04c9ba
scsi: lpfc: Fix Fabric hostname registration if system hostname changes
...
There are reports of multiple ports on the same system displaying different
hostnames in fabric FDMI displays.
Currently, the driver registers the hostname at initialization and obtains
the hostname via init_utsname()->nodename queried at the time the FC link
comes up. Unfortunately, if the machine hostname is updated after
initialization, such as via DHCP or admin command, the value registered
initially will be incorrect.
Fix by having the driver save the hostname that was registered with FDMI.
The driver then runs a heartbeat action that will check the hostname. If
the name changes, reregister the FMDI data.
The hostname is used in RSNN_NN, FDMI RPA and FDMI RHBA.
Link: https://lore.kernel.org/r/20191218235808.31922-5-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-12-21 13:42:42 -05:00
..
2019-12-09 10:36:44 -08:00
2019-12-19 22:08:55 -05:00
2019-07-30 12:12:59 -04:00
2019-11-19 21:37:34 -05:00
2019-10-24 21:22:32 -04:00
2019-12-09 10:36:44 -08:00
2019-09-30 23:59:53 -04:00
2019-11-19 22:31:18 -05:00
2019-11-19 21:37:34 -05:00
2019-12-19 22:42:44 -05:00
2019-12-09 10:36:44 -08:00
2019-12-02 13:37:02 -08:00
2019-11-07 06:43:18 -07:00
2019-05-30 11:26:32 -07:00
2019-12-02 13:37:02 -08:00
2019-09-21 10:50:15 -07:00
2019-11-06 00:04:02 -05:00
2019-11-12 22:21:34 -05:00
2019-09-21 10:50:15 -07:00
2019-12-19 22:08:54 -05:00
2019-10-24 21:22:32 -04:00
2019-07-29 21:12:35 -04:00
2019-12-09 19:15:52 -05:00
2019-12-21 13:42:42 -05:00
2019-12-08 12:23:42 -08:00
2019-10-24 21:20:31 -04:00
2019-09-30 22:42:41 -04:00
2019-11-12 22:21:34 -05:00
2019-12-08 12:23:42 -08:00
2019-10-24 21:22:32 -04:00
2019-10-24 21:22:32 -04:00
2019-12-21 13:42:41 -05:00
2019-12-19 22:08:55 -05:00
2019-12-09 10:36:44 -08:00
2019-01-29 00:40:54 -05:00
2019-12-19 22:08:54 -05:00
2019-12-19 22:08:54 -05:00
2019-02-25 21:37:25 -05:00
2019-03-02 11:39:54 -08:00
2019-10-23 17:23:44 +02:00
2019-05-24 17:36:45 +02:00
2019-01-08 07:58:37 -05:00
2019-05-21 10:50:45 +02:00
2019-10-18 15:01:54 +02:00
2019-05-21 10:50:45 +02:00
2019-07-11 15:17:41 -07:00
2019-07-11 15:17:41 -07:00
2019-05-21 10:50:45 +02:00
2018-12-18 23:13:12 -05:00
2019-05-21 10:50:45 +02:00
2019-11-12 22:21:34 -05:00
2019-11-12 22:21:35 -05:00
2019-06-05 17:37:11 +02:00
2019-06-05 17:37:11 +02:00
2019-05-21 10:50:45 +02:00
2019-10-09 23:39:35 -04:00
2018-12-18 23:19:21 -05:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-12-19 22:08:51 -05:00
2019-12-19 22:08:51 -05:00
2019-07-30 12:18:24 -04:00
2019-06-18 19:46:18 -04:00
2019-07-30 12:17:28 -04:00
2019-06-18 19:46:22 -04:00
2019-05-21 10:50:45 +02:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:57:42 -05:00
2019-05-30 11:25:18 -07:00
2019-01-08 21:58:35 -05:00
2019-05-21 10:50:45 +02:00
2019-11-01 20:12:50 -04:00
2019-07-11 15:14:01 -07:00
2019-11-07 06:43:18 -07:00
2019-06-18 19:46:18 -04:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-07-11 15:17:41 -07:00
2019-12-19 22:08:54 -05:00
2019-07-11 15:17:41 -07:00
2019-05-30 11:26:35 -07:00
2019-09-30 22:46:40 -04:00
2018-11-06 21:31:28 -05:00
2019-06-05 17:36:37 +02:00
2019-11-19 21:37:35 -05:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:45 +02:00
2019-11-07 06:43:18 -07:00
2019-05-24 17:36:45 +02:00
2019-07-11 15:14:01 -07:00
2019-12-09 19:19:28 -05:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-11-12 22:21:34 -05:00
2019-07-17 22:39:27 +09:00
2019-09-23 23:09:42 -04:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2018-12-18 23:13:12 -05:00
2019-07-11 15:17:41 -07:00
2019-05-30 11:26:39 -07:00
2018-12-28 14:48:06 -08:00
2019-05-20 10:56:43 -04:00
2019-10-24 21:22:32 -04:00
2019-05-24 17:36:45 +02:00
2019-11-19 21:37:34 -05:00
2019-06-20 15:37:02 -04:00
2019-10-24 21:22:32 -04:00
2019-05-24 17:39:02 +02:00
2019-10-23 17:23:44 +02:00
2019-05-30 11:26:35 -07:00
2019-06-20 15:21:33 -04:00
2019-05-30 11:26:38 -07:00
2019-08-16 11:33:56 -07:00
2019-08-16 11:33:56 -07:00
2019-03-19 17:11:37 -04:00
2018-12-18 23:19:21 -05:00
2019-08-07 21:32:53 -04:00
2019-02-13 22:07:03 -05:00
2019-06-05 17:37:17 +02:00
2019-05-24 17:36:45 +02:00
2019-11-19 21:37:34 -05:00
2019-07-30 12:42:55 -04:00
2019-05-21 06:16:21 -04:00
2019-07-11 20:39:22 -04:00
2019-05-30 11:26:35 -07:00
2019-10-03 21:43:04 -04:00
2019-05-21 06:16:21 -04:00
2019-12-19 22:08:52 -05:00
2019-09-30 23:07:16 -04:00
2019-12-19 22:08:54 -05:00
2019-05-30 11:26:35 -07:00
2019-09-12 07:11:58 -06:00
2019-11-01 20:12:50 -04:00
2019-07-30 13:07:42 +02:00
2019-04-15 22:25:00 -04:00
2019-05-30 11:29:53 -07:00
2019-12-02 13:37:02 -08:00
2019-11-06 00:06:03 -05:00
2019-07-11 15:14:01 -07:00
2019-12-09 20:36:28 -05:00
2019-11-21 21:12:39 -05:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:56 +02:00
2019-12-02 13:37:02 -08:00
2019-06-05 17:37:14 +02:00
2019-12-08 12:23:42 -08:00
2019-12-08 12:23:42 -08:00
2019-12-08 12:23:42 -08:00
2019-07-11 15:14:01 -07:00
2019-12-02 13:37:02 -08:00
2018-12-18 23:19:21 -05:00
2019-05-24 17:36:45 +02:00
2019-10-09 23:35:42 -04:00
2019-11-26 13:02:26 -07:00
2019-05-21 06:16:23 -04:00
2019-10-23 17:23:44 +02:00
2019-05-30 11:26:32 -07:00
2019-11-21 20:10:44 -05:00
2019-11-12 22:21:34 -05:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-09-10 22:10:17 -04:00
2019-12-19 22:42:44 -05:00
2019-08-07 21:35:59 -04:00
2019-05-24 17:39:02 +02:00
2019-07-11 15:14:01 -07:00
2018-11-15 14:27:08 -05:00
2018-12-18 23:13:12 -05:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-11-12 22:21:34 -05:00