From nobody Tue May 24 08:53:32 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 75A6E1B440AA for ; Tue, 24 May 2022 08:53:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6nzc1G3dz3C4l for ; Tue, 24 May 2022 08:53:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0B617218DF for ; Tue, 24 May 2022 08:53:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24O8rVSC053068 for ; Tue, 24 May 2022 08:53:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24O8rVO7053067 for virtualization@FreeBSD.org; Tue, 24 May 2022 08:53:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 264198] bhyve: very slow network with IPFW, virtio and Vlan on 12.3-RELEASE-p5 Date: Tue, 24 May 2022 08:53:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ol@dbconn.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653382412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L4okTEoTBynbpvcmetsVB7yOTt3MxdaBXzPJfcOSqhw=; b=dghBcrwAM8GX36L5X+IhikNx63oBmQO2nXc4MxJGoHSEnxLY+D50/Ws2/E+oMe7pIfjT9n 8L7et2H70knkP6nDzXNnnl5mdi7zpFr6ha91NCutULXnFSPTzZnizdB59Zye1N1io6z/7u EcopnLTBhBQpViQM5R0FvjGtFkqs+o9aJwuhV8umcxQFkgHnjq+j2XAazM3mmscNyS3tgZ EPpPi8oA1DJlF1pp4NJHJ1rGVHppVD97SqeV1MwnCFVeEGbnDg8wTz747WcbCKapkFKJs2 81zdU84dEnidiu6Pt5YhUizqjq9lUItVmtskalWlHKoGKyC42EIexkBSz+AXdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653382412; a=rsa-sha256; cv=none; b=wJF+OmDw76V7i8UOn+cmqmh9/yzMJnrf3BGEut/yOzwLs3B3giI5DFQ33ZU4w6mRkEmDDe 5iQ2IVbDMXp+ZHR2+sHknCPdsncssvZAM4wNzLIQ+5TrrUQ1Tj+r7SMNRSWec+4t1wfVfM jdiHwdhagxNJdmQuR81X9iYIsnM4HeIZ2qsDkovTCrWLcuXaxaZiDjpcgL1pJ2nhlxzpkl sTBKrYgFgjllYF0wtbvCDSQboOLpkXSBOYk84pI89HWHTSNfS7E0C2/agdv/ldJLFpamyn p9HBvtVbvxTx6gMoxkvjCcM2t9XqdAGiPSp107mep291/5V6hnYYPbElgjVqgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264198 --- Comment #1 from ol@dbconn.net --- Hello, 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 beh= ind 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: igb0---igb0.4030---bridge4030---tap0 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=20 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 -vlanhwcsum but this could not solve the problem. regards Ole --=20 You are receiving this mail because: You are the assignee for the bug.=