[Bug 264198] bhyve: very slow network with IPFW, virtio and Vlan on 12.3-RELEASE-p5

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 May 2022 08:53:32 UTC

--- Comment #1 from ol@dbconn.net ---

after upgrading machines from 12.2 to 12.3 I experienced very slow network
connection on virtual machines when activating ipfw on the host system. With
12.2 there was no problem.

Description of the affected setup:

* HostA and HostB, both FreeBSD 12.3, one NIC
* VmA (on HostA) and VmB (on HostB), both with virtio-net.

HostA and HostB are connected to a Switch with vlans. For me everything behind
the NIC is a blackbox.
vlan MTU is 1400. On both hosts there is a bridge, with the vlan-interface and
the tap of the vm.

HostA and HostB:

On HostA and B there ist only one ipfw rule:
65535 allow ip from any to any

Measurement of thoughput:

VmA # nc -v -l 2222 > /dev/null
VmB # nc -v vma 2222
Connection to vma 2222 port [tcp/*] succeeded!
6+0 records in
6+0 records out
6291456 bytes transferred in 19.360484 secs (324964 bytes/sec)

this is 317kbytes/s 

If I deactivate the ipfw firewall on HostA with "service ipfw stop" the
throughput increases to 21Mbytes/s.

I tried to solve it by deactivating options with:
ifconfig igb0 -txcsum -rxcsum -txcsum6 -rxcsum6 -tso4 -tso6 -vlanhwtso
but this could not solve the problem.


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