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
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to