Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2020 08:35:54 +0100
From:      =?UTF-8?Q?Carsten_B=c3=a4cker?= <carbaecker@gmx.de>
To:        YongHyeon PYUN <pyunyh@gmail.com>
Cc:        Hans Petter Selasky <hps@selasky.org>, Kristof Provost <kp@FreeBSD.org>, freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Problem with checksum offloading on RPi3 (PF + Jails involved)
Message-ID:  <117fea06-11ed-c074-1880-bef75c57d662@gmx.de>
In-Reply-To: <20201119022208.GB1974@michelle>
References:  <20201103045215.GA2524@michelle> <46d08198-530c-cb4b-efa8-4edaf89471c1@selasky.org> <4dfaa9a3-c085-8466-a6e4-19f988b5ed3d@selasky.org> <e43b42e0-80fe-847a-f1bc-025b6914f98a@gmx.de> <20201116011910.GB1941@michelle> <1245cbe5-9d2f-4808-f989-569ae7d57a8a@gmx.de> <20201117030406.GA45158@michelle> <e302db94-2d16-ae06-ee76-444ac88c7c57@gmx.de> <20201118044857.GA1974@michelle> <a38b46ec-0164-2588-9f51-aa1a0aeb7e06@gmx.de> <20201119022208.GB1974@michelle>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 19.11.2020 um 03:22 schrieb YongHyeon PYUN:
> On Wed, Nov 18, 2020 at 10:47:08AM +0100, Carsten B=C3=A4cker wrote:
>
> [...]
>
>> Sorry, that's my fault - i overlooked your request for a test with pf
>> enabled.
>> The example-ruleset is attached again. I added a line to allow the
>> incoming ping to 5555.
>>
>> I don't see a difference until i enable the redirection to the jail
>> which makes the packet with extended data-length fail.
>> Once i disable RXCSUM it works.
>>
> Thanks for testing.  Unfortunately I couldn't find a driver issue
> on patched smsc(4).  Quick looking pf(4) makes me wonder how it
> verifies UDP datagrams.
>
> Kristof, does pf(4) take advantage of H/W checksummed result for
> UDP datagrams?  It seems pf_check_proto_cksum() always pass
> IPPROTO_TCP such that UDP pseudo checksum is not computed in the
> function.  I'm under the impression that incremental checksum
> update for UDP datagrams with only CSUM_DATA_VALID bit wouldn't
> work.
Just did a quick test with the RPI4, using the sd-card from the previous
run.
The lengthly packet fails even with pf disabled.

Surprisingly the original problem (within the NAT-ted jail) disappeared.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?117fea06-11ed-c074-1880-bef75c57d662>