Re: [patch 4/10] s390: network driver.
From: jamal <hidden>
Date: 2004-12-22 13:48:28
On Wed, 2004-12-22 at 05:56, Thomas Spatzier wrote:
Is that ok, i.e. what all drivers do or should do? For the problems that applications might have (i.e. sockets being blocked etc.) another solution should be found. And as Jeff pointed out, this should be a central solution and not be implemented in drivers.
I think this needs to be resolved too.
It is possible to have a centralized action instead of requiring drivers
to make changes if we know the state of the driver is in netcarrier_off.
What that would require is
on cable gone, you just say:
netif_carrier_off();
and the top layer code will junk the packets before they hit the driver.
This way the socket code can continue sending whatever it wants but if
theres no link, then its fair to drop those packets?
If this acceptable i can generate a quick patch.
cheers,
jamal