From the WWN of the HBA port, you can determine the controller number or the controller path. In this example, the HBA port WWN is 10000000c9722de0 (as in the previous section):
# fcinfo hba-port 10000000c9722de0
HBA Port WWN: 10000000c9722de0
Port Mode: Initiator
Port ID: 10100
OS Device Name: /dev/cfg/c4
Manufacturer: Emulex
Model: LPe11002-S
Firmware Version: LPe11002-S 2.82a4
FCode/BIOS Version: Boot:5.02a1
Serial Number: 0999BG0-07500002OH
Driver Name: emlxs
Driver Version: 3.1.01.0 (2016.05.23.12.00)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 20000000c9722de0
NPIV Not Supported
-bash-4.3#
The line labelled OS Device Name indicates that the controller number is 4 (the controller device path is /dev/cfg/c4).