rip6_output not in net epoch across call to ip6_setpktopts()

Hans Petter Selasky hps at selasky.org
Tue May 18 19:35:24 UTC 2021


On 5/18/21 9:18 PM, Ryan Stone wrote:
> The issue seems to be that rip6_output() calls into ip6_setpktopts()
> outside of the net epoch.  Should I just wrap the setpktopts call in a
> net epoch enter/exit, or does anybody think that there's something
> cleverer that should be done there?

Hi,

Epoch automagically detects recursion, and optimizes for that. If there 
is an inner section of enter/exit, covered by an outer section, the 
overhead will be less for the inner section.

--HPS


More information about the freebsd-net mailing list