Date: Sun, 2 Feb 2020 22:33:19 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Rick Macklem <rmacklem@uoguelph.ca>, freebsd-net <freebsd-net@freebsd.org> Subject: Re: Does sosend() need CURVNET_SET/CURVNET_RESTORE? Message-ID: <6ba3e3bd-d844-e685-7062-339e57438748@selasky.org> In-Reply-To: <YTBPR01MB337446173B7D480145BBB6C6DD010@YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM> References: <YTBPR01MB337446173B7D480145BBB6C6DD010@YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-02-02 22:22, Rick Macklem wrote: > Hi, > > The current krpc code calls sosend() and soreceive() without any > CURVNET_SET()/CURVNET_RESTORE() wrapped around them. > > When I recently used sosend_generic(), it panic'd without them. > > Do they need to be added around sosend()/soreceive()? > > I'll admit to knowing nothing about vnet. > > Thanks, rick What is the panic backtrace? Usually one of these tree variants is used: CURVNET_SET(TD_TO_VNET(td)); CURVNET_SET(ifp->if_vnet); CURVNET_SET(so->so_vnet); --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6ba3e3bd-d844-e685-7062-339e57438748>