Re: Synchronous board drivers
Andi Kleen (ak@muc.de)
06 Jul 1999 05:35:10 +0200
eis@baty.hanse.de (Henner Eisen) writes:
>
> sync_ppp.c uses the standard linux packet handler (low layer must be
> a network interface which sets the skb's type to
> PPP and passes it upward by netif_rx()). The latter has the advantage
> that it is the most flexible (not hardware dependent in any way)
> and avoids creating yet another kernel-internal interface. The
> disadvantage is that it does not allow to pass link state changes
> (i.e. tty hangup) to the upper layer and that each packet passes
> netif_rx two times.
You can use skb->cb[] to pass lots of state. IP/TCP need it too for sending,
on the receiving side it is free for use until it hits ip_rcv. Just make sure
that all drivers who use the protocol type know about it.
-Andi
--
This is like TV. I don't like TV.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/