[Bug 271456] srv-io mce(4) with bhyve: can't ping the vm

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 May 2023 19:43:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271456

            Bug ID: 271456
           Summary: srv-io mce(4) with bhyve: can't ping the vm
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: benoitc@enki-multimedia.eu

I have setup sriov on a mellanox ConnectX-4 Lx, mce(4)

```
PF {
    device: "mlx5_core0";
    num_vfs: 8;
}

DEFAULT {
    passthrough: true;
}

VF-0 {
    passthrough: false;
}

VF-1 {
    mac-addr: "2e:79:38:0d:0f:9e";
    passthrough: true;
}


```

This provide me the `mce2`  interface ConnectX-4 Lx
and a bridge like this:

```
mce2: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
9000
       
options=7ead00b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,HWRXTSTMP,NOMAP,TXTLS4,TXTLS6,VXLAN_HWCSUM,VXLAN_HWTSO>
        ether ba:88:73:e7:93:7d
        media: Ethernet 25GBase-SR <full-duplex,rxpause,txpause>
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
        ether 6a:db:8d:8d:ff:63
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 8 priority 128 path cost 2000000
        member: mce2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 6 priority 128 path cost 55
        groups: bridge vm-switch viid-4c918@
        nd6 options=9<PERFORMNUD,IFDISABLED>
```

when I start a freebsd vm with vm-bhyve, the vm start and is abble to acquire
via dhcp the IP but I can't ping it. 

When I start a vm using passthrough interface this is working as expected. Any
idea what could be the issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.