From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Niklas Hallqvist <niklas@appli.se>
Cc: "G.R." <firemeteor@users.sourceforge.net>,
Paul Leiber <paul@onlineschubla.de>,
xen-devel@lists.xenproject.org
Subject: Re: Possible bug? DOM-U network stopped working after fatal error reported in DOM0
Date: Tue, 9 Jan 2024 14:53:38 +0100 [thread overview]
Message-ID: <ZZ1P4lSL_jPztGJ3@macbook> (raw)
In-Reply-To: <DCF59D19-59C2-43E9-9F25-7F64FFF691F7@appli.se>
On Tue, Jan 09, 2024 at 12:13:04PM +0100, Niklas Hallqvist wrote:
> > On 14 Dec 2022, at 07:16, G.R. <firemeteor@users.sourceforge.net> wrote:
> >
> > On Thu, Nov 3, 2022 at 8:37 PM Roger Pau Monné <roger.pau@citrix.com> wrote:
> >>>>> Roger.
> >>>> Hi Roger, any news for the upstream fix? I haven't heard any news since...
> >>>> The reason I came back to this thread is that I totally forgot about
> >>>> this issue and upgraded to FreeNAS 13 only to rediscover this issue
> >>>> once again :-(
> >>>>
> >>>> Any chance the patch can apply on FreeBSD 13.1-RELEASE-p1 kernel?
> >>>>
> >>>> Thanks,
> >>>> G.R.
> >>>>
> >>>
> >>> Hi,
> >>>
> >>> I want to confirm that the patch in an official release would make quite some people very happy. E.g. among OPNsense users, there are some who
> >>> suffer from the network issue [1]. FWIW, I compiled a kernel including Roger's patch, and it seems to be working without trouble in my OPNsense DomU.
> >>
> >> Hello to both,
> >>
> >> Sorry, I completely dropped the ball on that patch, didn't even
> >> remember I had it pending :(.
> >>
> >> Will do a build test with it and commit later today, I don't think I
> >> will get any feedback, and it seems to improve the situation for your
> >> use-cases.
> >
> > Hi Roger,
> > Just another query of the latest status. It'll be great if you can
> > share a link to the upstream commit.
> > I'm thinking of asking for a back-port of your fix to the FreeNAS
> > community, assuming it will take a long time to roll out otherwise.
> >
> > Thanks,
> > G.R.
> >
> >>
> >> Thanks, Roger.
> >
> >
>
> Hi everyone!
>
> So did anything ever happen on this? I find myself in the same situation with TrueNAS core 13, and can’t see any signs of changes in the FreeBSD 13 branches.
Hello,
I don't think the change is suitable to backport, it's IMO too
intrusive and risky. It was committed late 2022, and it's in 14.0:
commit dabb3db7a817f003af3f89c965ba369c67fc4910
Author: Roger Pau Monné <royger@FreeBSD.org>
Date: Thu Nov 3 13:29:22 2022 +0100
xen/netfront: deal with mbuf data crossing a page boundary
There's been a report recently of mbufs with data that crosses a page
boundary. It seems those mbufs are generated by the iSCSI target
system:
https://lists.xenproject.org/archives/html/xen-devel/2021-12/msg01581.html
In order to handle those mbufs correctly on netfront use the bus_dma
interface and explicitly request that segments must not cross a page
boundary. No other requirements are necessary, so it's expected that
bus_dma won't need to bounce the data and hence it shouldn't
introduce a too big performance penalty.
Using bus_dma requires some changes to netfront, mainly in order to
accommodate for the fact that now ring slots no longer have a 1:1
match with mbufs, as a single mbuf can use two ring slots if the data
buffer crosses a page boundary. Store the first packet of the mbuf
chain in every ring slot that's used, and use a mbuf tag in order to
store the bus_dma related structures and a refcount to keep track of
the pending slots before the mbuf chain can be freed.
Reported by: G.R.
Tested by: G.R.
MFC: 1 week
Differential revision: https://reviews.freebsd.org/D33876
TrueNAS/OOPNsense might consider picking it up themselves.
Thanks, Roger.
next prev parent reply other threads:[~2024-01-09 13:54 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-18 18:35 Possible bug? DOM-U network stopped working after fatal error reported in DOM0 G.R.
2021-12-19 6:10 ` Juergen Gross
2021-12-19 17:31 ` G.R.
2021-12-20 17:13 ` G.R.
2021-12-21 13:50 ` Roger Pau Monné
2021-12-21 18:19 ` G.R.
2021-12-21 19:12 ` Roger Pau Monné
2021-12-23 15:49 ` G.R.
2021-12-24 11:24 ` Roger Pau Monné
2021-12-25 16:39 ` G.R.
2021-12-25 18:06 ` G.R.
2021-12-27 19:04 ` Roger Pau Monné
[not found] ` <CAKhsbWY5=vENgwgq3NV44KSZQgpOPY=33CMSZo=jweAcRDjBwg@mail.gmail.com>
2021-12-29 8:32 ` Roger Pau Monné
2021-12-29 9:13 ` G.R.
2021-12-29 10:27 ` Roger Pau Monné
2021-12-29 19:07 ` Roger Pau Monné
2021-12-30 15:12 ` G.R.
2021-12-30 18:51 ` Roger Pau Monné
2021-12-31 14:47 ` G.R.
2022-01-04 10:25 ` Roger Pau Monné
2022-01-04 16:05 ` G.R.
2022-01-05 14:33 ` Roger Pau Monné
2022-01-07 17:14 ` G.R.
2022-01-10 14:53 ` Roger Pau Monné
2022-01-11 14:24 ` G.R.
2022-10-30 16:36 ` G.R.
2022-11-03 6:58 ` Paul Leiber
2022-11-03 12:22 ` Roger Pau Monné
2022-12-14 6:16 ` G.R.
2024-01-09 11:13 ` Niklas Hallqvist
2024-01-09 13:53 ` Roger Pau Monné [this message]
2024-01-19 15:51 ` G.R.
2021-12-20 13:51 ` Roger Pau Monné
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZZ1P4lSL_jPztGJ3@macbook \
--to=roger.pau@citrix.com \
--cc=firemeteor@users.sourceforge.net \
--cc=niklas@appli.se \
--cc=paul@onlineschubla.de \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.