Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2020 15:12:10 -0800
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Ian Lepore <ian@freebsd.org>
Cc:        Ryan Stone <rysto32@gmail.com>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r357051 - head/sys/dev/bge
Message-ID:  <20200123231210.GH1268@FreeBSD.org>
In-Reply-To: <b557455b3646c39e7366da689ffd6c176c7ccc49.camel@freebsd.org>
References:  <202001231636.00NGawrr080128@repo.freebsd.org> <CAFMmRNyP5nKPZ62c9yRktH4t23GAgnpc2u8kHhUevUCu3doAQQ@mail.gmail.com> <20200123230546.GG1268@FreeBSD.org> <b557455b3646c39e7366da689ffd6c176c7ccc49.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 23, 2020 at 04:08:32PM -0700, Ian Lepore wrote:
I> On Thu, 2020-01-23 at 15:05 -0800, Gleb Smirnoff wrote:
I> > On Thu, Jan 23, 2020 at 02:17:33PM -0500, Ryan Stone wrote:
I> > R> What is a driver's responsibility now for entering/leaving the net epoch now?
I> > 
I> > For drivers that are 'special', entering the net epoch is necessary. Special
I> > usually means running if_input outside network interrupt context.
I> > 
I> > However, there is plan to generalize entering/exiting epoch for taskqueues
I> > and callouts.
I> > 
I> 
I> That sounds every bit as horrible and out-of-place as the recent hack
I> (and it does feel very much like a horrible hack) that put network-
I> specific code into the guts of interrupt dispatching.

It isn't really a network code. You just include <sys/epoch.h> which
declares the epoch KPI and a few globally recognized epochs. For now
the only one is the network epoch. 

If you want to have for a example a disk epoch also supported
by interrupt code, that would add one extra declaration to epoch.h,
and again nothing really disk related.

-- 
Gleb Smirnoff



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