Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2022 15:40:32 -0400
From:      Charles Sprickman <spork@bway.net>
To:        Kristof Provost <kp@FreeBSD.org>
Cc:        Matt Garber <matt.garber@gmail.com>, mike tancsa <mike@sentex.net>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: vtnet rxcsum broken for forwarding RELENG_13 ?
Message-ID:  <5A9B449D-BC3C-4D89-8AE8-7CC680B2F41E@bway.net>
In-Reply-To: <0FE1F488-EEA5-4010-9926-2D9567E8461F@FreeBSD.org>
References:  <d30a54ad-6b93-456e-64fc-75d1b09b2fb3@sentex.net> <CANwXMPPUEYWOoYLcYGhzMpP=MOd-oNrT4S7NJUy8AE52cPRvEg@mail.gmail.com> <0FE1F488-EEA5-4010-9926-2D9567E8461F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Apr 12, 2022, at 6:43 AM, Kristof Provost <kp@FreeBSD.org> wrote:
>=20
> On 12 Apr 2022, at 2:07, Matt Garber wrote:
>> On Mon, Apr 11, 2022 at 7:15 PM mike tancsa <mike@sentex.net> wrote:
>>=20
>>> I was setting up a VM pf firewall and noticed I was not able to nat =
out
>>> for some reason. Looking at the pcap, it seems when the vm is in
>>> forwarding mode, I get tcp checksum errors. If I do a
>>>=20
>>> ifconfig vtnet1 -rxcsum
>>>=20
>>> ifconfig vtnet0 -rxcsum
>>>=20
>>> nat then seems to work fine
>>>=20
>>> The setup is a simple VM with the hypervisor libvirt/KVM ubuntu 20 =
LTS.
>>> Guest is RELENG_13 from Apr 11/2022. If I change to em nics in the =
VM,
>>> all is fine out of the box.
>>>=20
>>>=20
>>> I opened up https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263229=

>>=20
>>=20
>>=20
>> Unless someone knows otherwise, I=E2=80=99ve been under the =
impression that PF =E2=80=94 or
>> potentially any of the other FreeBSD firewalls (?), but I use PF =E2=80=
=94 has been
>> =E2=80=9Cbroken=E2=80=9D in that regard on Linux KVM-based FreeBSD =
guests for years. As
>> such I=E2=80=99ve always needed to use csum_disable flags on the =
vtnet interfaces
>> or suffer *extremely* poor network performance, even for servers not =
doing
>> NAT forwarding.
>>=20
> That PF checksum issue was fixed =
c110fc49da2995d10d60d908af0838ecb4be9bee, back in 2015.

Do you have a bug ID that references this issue/fix?

Charles


>=20
> Kristof
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A9B449D-BC3C-4D89-8AE8-7CC680B2F41E>