Peter Buckingham wrote:
Hi,
Tommy Christensen wrote:
A proper solution would take care of both these issues: "stale packets"
and "socket blocking". They are pretty much related.
Using a socket for each interface *ought* not be needed.
Carrier detection sounds like a good thing in its own right.
I came across this same problem with multicast/unicast with an e1000.
For a quick hack we just check to see whether the carrier is ok, if it's
not we just drop the packet. this might do some nasty things with tcp
and it may be better to check to see wither the socket buffer is full,
but this works for me here... (this is against a 2.6.9ish kernel)
Thanks for the input!
The downside of this solution is that it doesn't do anything with the
packets already queued for tx (in the qdisc queue and in the DMA ring).
OTOH it probably works just fine in real life (!).
Also, we may not want to handle all devices alike, as this patch does.
-Tommy
|