• Johannes Thumshirn's avatar
    scsi: fcoe: provide translation table between Ethernet and FC port speeds · 0b924e55
    Johannes Thumshirn authored
    Provide a translation table between Ethernet and FC port speeds so odd
    speeds (from a Ethernet POV) like 8 Gbit are correctly mapped to sysfs
    and open-fcoe's fcoeadm.
    
    Before:
        Description:      BCM57840 NetXtreme II 10/20-Gigabit Ethernet
        Revision:         11
        Manufacturer:     Broadcom Corporation
        Serial Number:    6CC2173EA1D0
    
        Driver:           bnx2x 1.712.30-0
        Number of Ports:  1
    
            Symbolic Name:     bnx2fc (QLogic BCM57840) v2.10.3 over eth2
            OS Device Name:    host1
            Node Name:         0x20006cc2173ea1d1
            Port Name:         0x10006cc2173ea1d1
            FabricName:        0x100000c0dd0ce717
            Speed:             unknown
            Supported Speed:   1 Gbit, 10 Gbit
            MaxFrameSize:      2048 bytes
            FC-ID (Port ID):   0x660702
            State:             Online
    
    After:
        Description:      BCM57840 NetXtreme II 10/20-Gigabit Ethernet
        Revision:         11
        Manufacturer:     Broadcom Corporation
        Serial Number:    6CC2173EA1D0
    
        Driver:           bnx2x 1.712.30-0
        Number of Ports:  1
    
            Symbolic Name:     bnx2fc (QLogic BCM57840) v2.10.3 over eth2
            OS Device Name:    host1
            Node Name:         0x20006cc2173ea1d1
            Port Name:         0x10006cc2173ea1d1
            FabricName:        0x100000c0dd0ce717
            Speed:             8 Gbit
            Supported Speed:   1 Gbit, 10 Gbit
            MaxFrameSize:      2048 bytes
            FC-ID (Port ID):   0x660701
            State:             Online
    Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
    Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
    Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    0b924e55
fcoe_transport.c 27.1 KB