public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ATM] who 'owns' the skb created by drivers/atm?
@ 2003-02-21  1:18 chas williams
  2003-02-21  1:42 ` James Morris
  0 siblings, 1 reply; 9+ messages in thread
From: chas williams @ 2003-02-21  1:18 UTC (permalink / raw)
  To: linux-kernel


when one of the atm drivers has a skb ready to pass up to the higher 
layers it may (optionally?) fill in skb->cb.  this usually just holds
a pointer to the atm_vcc that the skb arrived on.  if this skb is
destined for an atm socket, all is well.  the trouble arises when the skb
is bound for the ip layer via lec or clip.  lec or clip just push
the skb up to the ip layer via netif_rx().  sometimes (particularly true
on 64-bit platforms) the ip layer will interpret the skb->cb (for ip
the first 4 bytes of skb->cb are the next hop address which isnt used
much apparently).

its my understanding is that you can't use skb->cb unless you created
the skb.  well atm created the skb and filled in ->cb.  it seems ip
doesn't know its sharing this skb with the atm layer and doesnt clone
the skb in ip_rcv().  there seems to be an implicit understanding that
skb's created by ethernet drivers are 'owned' by the ip layer and shouldnt
touch skb->cb.

i would hazard that the atm drivers are not 'owned' by the ip layer --
any skb's that lec or clip send to the ip layer should first cloned and
the clone passed to the ip layer?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-02-24  1:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-21  1:18 [ATM] who 'owns' the skb created by drivers/atm? chas williams
2003-02-21  1:42 ` James Morris
2003-02-21  6:22   ` David S. Miller
2003-02-21  6:12     ` Mitchell Blank Jr
2003-02-21  6:00       ` David S. Miller
2003-02-21  6:24         ` Mitchell Blank Jr
2003-02-21 16:08           ` chas williams
2003-02-23  3:15             ` Werner Almesberger
2003-02-24  1:55               ` chas williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox