Re: Soliciting infiniband ifconfig output

From: Chuck Tuffli <ctuffli_at_gmail.com>
Date: Wed, 08 Feb 2023 19:34:31 UTC
On Thu, Feb 2, 2023 at 2:10 AM Mina Galić <freebsd@igalic.co> wrote:
>
> Hi folks,
>
> I'm currently working on a project of making FreeBSD a Tier 1 cloud-init platform[1].
>
> That involves a lot of refactoring of very Linux specific code[2], and in order to be able to do that, I need information about hardware that I don't have access to.
>
> I'm still operating under the assumption that i can get (almost) all information from a network device via ifconfig[3].
>
> Can you share an `ifconfig -a` output with me on your FreeBSD systems that have Infiniband? And maybe any other commands that are more useful, if my above assumption is wrong.

I don't use IB but have hardware that is capable. Below is what I
think you wanted. If others can provide info on how to configure this,
I'm happy to do so.

# freebsd-version
13.1-RELEASE
# pciconf -lva pci0:55:0:0
mlx5_core0@pci0:55:0:0: class=0x020700 rev=0x00 hdr=0x00 vendor=0x15b3
device=0x101b subvendor=0x15b3 subdevice=0x0008
    vendor     = 'Mellanox Technologies'
    device     = 'MT28908 Family [ConnectX-6]'
    class      = network
    subclass   = InfiniBand
# pciconf -lva pci0:55:0:1
mlx5_core1@pci0:55:0:1: class=0x020700 rev=0x00 hdr=0x00 vendor=0x15b3
device=0x101b subvendor=0x15b3 subdevice=0x0008
    vendor     = 'Mellanox Technologies'
    device     = 'MT28908 Family [ConnectX-6]'
    class      = network
    subclass   = InfiniBand
# ifconfig -a
bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 08:f1:ea:98:62:80
        inet 169.254.238.43 netmask 0xfffff800 broadcast 169.254.239.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 08:f1:ea:98:62:81
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bge2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 08:f1:ea:98:62:82
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bge3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 08:f1:ea:98:62:83
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ib0: flags=8002<BROADCAST,MULTICAST> metric 0 mtu 4092
        options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
        lladdr 0.0.1.5.fe.80.0.0.0.0.0.0.b8.59.9f.3.0.ec.56.cc
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ib1: flags=8002<BROADCAST,MULTICAST> metric 0 mtu 4092
        options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
        lladdr 0.0.9.5.fe.80.0.0.0.0.0.0.b8.59.9f.3.0.ec.56.cd
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>