diff options
| author | James Smart <[email protected]> | 2019-12-18 15:58:02 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-12-21 13:42:42 -0500 |
| commit | e3ba04c9bad1d1c7f15df43da25e878045150777 (patch) | |
| tree | cace08182383c0910bbca4494f7db3fcf10a50e6 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | f3d0a8acc5a88435186d242376db05788a891516 (diff) | |
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/[email protected]
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions