Date: Sun, 02 Feb 2020 21:32:16 -0800 From: "Kristof Provost" <kp@FreeBSD.org> To: "Rick Macklem" <rmacklem@uoguelph.ca> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: Does sosend() need CURVNET_SET/CURVNET_RESTORE? Message-ID: <E4E34E8E-0EE1-41FC-A365-1070DF16B076@FreeBSD.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 2 Feb 2020, at 13:22, Rick Macklem wrote: > The current krpc code calls sosend() and soreceive() without any > CURVNET_SET()/CURVNET_RESTORE() wrapped around them. > sosend() and soreceive() do the CURVENT_SET()/CURVNET_RESTORE() dance for you. > When I recently used sosend_generic(), it panic'd without them. > sosend_generic() does not, because usually sosend() calls it, so it’d already be set. Best regards, Kristof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E4E34E8E-0EE1-41FC-A365-1070DF16B076>