Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 15:43:44 -0700 (PDT)
From:      Jin Guojun (DSD staff) <jin@george.lbl.gov>
To:        hackers@freebsd.org
Subject:   possible doing context switch between network and link layers?
Message-ID:  <200006292243.e5TMhim19889@portnoy.lbl.gov>

next in thread | raw e-mail | index | archive | help
Hi,

Try to control the NIC output, instead of dropping the packet, I would
like to do context switch on current sending process.  tsleep() seems not
to be a right mechanism for this purpose because it will panic in the kernel
wherever between the network and link layers the tsleep() is put -- e.g.

ether_output()
{
	...
	if (IF_QFULL)	{
		tsleep(m, PSOCK, "pause NIC", 1);
		if (IF_QFULL)
			DROP_Q;
	}
	...
}

Is there other context switch mechanism for this purpose? or
is it impossible to do the context switch at network and link layers?

	-Jin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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