Date: Wed, 4 Nov 2020 07:36:44 +0100 From: =?UTF-8?Q?Carsten_B=c3=a4cker?= <carbaecker@gmx.de> To: Hans Petter Selasky <hps@selasky.org>, YongHyeon PYUN <pyunyh@gmail.com>, Kristof Provost <kp@FreeBSD.org> Cc: freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Problem with checksum offloading on RPi3 (PF + Jails involved) Message-ID: <e43b42e0-80fe-847a-f1bc-025b6914f98a@gmx.de> In-Reply-To: <4dfaa9a3-c085-8466-a6e4-19f988b5ed3d@selasky.org> References: <748edc3d-4ef7-c4de-291f-7c0b460a6052@gmx.de> <D8CE4762-4D94-47C7-A8D1-6C537766813B@FreeBSD.org> <5130ee46-5832-d4df-d774-c6bd32e10b30@gmx.de> <A3890336-BE8F-438C-8C3E-7B21FB729FCA@FreeBSD.org> <20201029213622.GM31099@funkthat.com> <55713894-A896-4F12-ABB9-93DFEB2F16B9@FreeBSD.org> <20201103045215.GA2524@michelle> <46d08198-530c-cb4b-efa8-4edaf89471c1@selasky.org> <4dfaa9a3-c085-8466-a6e4-19f988b5ed3d@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 03.11.2020 um 09:46 schrieb Hans Petter Selasky: > On 2020-11-03 09:19, Hans Petter Selasky wrote: >> It looks like smsc(4) uses the following RX format but I don't >> know actual RX format of H/W(no access to datasheet). >> >> <---------------------------- actlen >> --------------------------------------------------> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 <------------- pktlen ------------------------= > >> rxhdr(4 bytes) | padding (2 bytes) | RX frame | FCS(4 bytes) | >> partial checksum(2 bytes) > > Hi, > > I wonder if the checksum is zero, when not valid, and that we should > check for this in the driver! > > Can you try this patch? > > Also enabling debugging in the SMSC driver would be useful. > > --HPS > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" Hi, i applied the patch on -CURRENT but got a panic right after loading the kernel. Most likely an unrelated problem. But i was able to apply the patch on releng/12.2 (with an offset). Unfortunately it doesn't change the previously described behavior with rxcsum and i didn't manage to get any reasonable debug-output. Since i can easily reproduce the problem. How else can i help? Regards, Carsten
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e43b42e0-80fe-847a-f1bc-025b6914f98a>