netdev
[Top] [All Lists]

Re: Flush Tx skbs after link down

To: "Feldman, Scott" <scott.feldman@xxxxxxxxx>
Subject: Re: Flush Tx skbs after link down
From: Stefan Rompf <srompf@xxxxxx>
Date: Wed, 15 Jan 2003 10:50:33 +0100
Cc: netdev@xxxxxxxxxxx, "Cramer, Jeb J" <jeb.j.cramer@xxxxxxxxx>
References: <C6F5CF431189FA4CBAEC9E7DD5441E01087ADF@orsmsx402.jf.intel.com>
Sender: netdev-bounce@xxxxxxxxxxx
Hi,

> Someone most know the answer to this: What's the proper way to dispose
> of Tx skbs that are owned by the h/w ("in-flight") when link was lost?

I think this can't be achieved without driver support, simply because
pending DMA transfers must be removed before freeing the skbs, and this
is specific. So the driver model needs to be extended to have a reset
method similiar to the qdiscs. If available, this method is called on
link down event by the linkwatch stuff included in recent 2.5 kernels.

Stefan


<Prev in Thread] Current Thread [Next in Thread>