Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2013 08:54:44 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r256587 - in head/sys: kern sys
Message-ID:  <20131017045444.GR52889@FreeBSD.org>
In-Reply-To: <CAJ-VmokmOfMue6t82iAqo6UDxbQCF7wx_yyEKwZVQo-ewSyQEA@mail.gmail.com>
References:  <201310160502.r9G521cA066218@svn.freebsd.org> <CAJ-VmokmOfMue6t82iAqo6UDxbQCF7wx_yyEKwZVQo-ewSyQEA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 16, 2013 at 12:47:13PM -0700, Adrian Chadd wrote:
A> .. so what brought this on? I can see this fixing issues for things where a
A> virtual device is created with taskqueues (eg a tap device of some sort)
A> that get stuffed into a vnet context. But for physical interfaces whose
A> taskqueues don't have a specific vnet context and may need to set it
A> per-packet, what may this break?

For physical this shouldn't breab anything, you can re-set the curvnet,
and then re-restore it.

A> Ie - what did this fix, and why isn't it being fixed in all the various
A> taskqueues in device drivers?
A> 
A> I'd rather not see the taskqueue setup (which knows nothing about network
A> contexts at all) grow this just to solve a bunch of places where the task
A> in question can just correctly initialise the context itself when it's
A> called.

For non-physical drivers' taskqueues that fixes that taskqueue belongs to
the same vnet, that was used on its creation. This is the case for pf(4),
might be used somewhere else, for example tap(4) you mentioned.

-- 
Totus tuus, Glebius.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131017045444.GR52889>