| To: | Tommy Christensen <tommy.christensen@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Handle shared SKBs in VLAN receive code |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Mon, 13 Oct 2003 10:19:35 -0700 |
| Cc: | greearb@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <3F892629.7090206@tpack.net> |
| References: | <3F87430D.2040000@tpack.net> <3F87464B.1020908@candelatech.com> <3F874A30.6010700@tpack.net> <3F885418.3090407@candelatech.com> <20031011120339.0da631e6.davem@redhat.com> <3F892629.7090206@tpack.net> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Sun, 12 Oct 2003 12:00:09 +0200 Tommy Christensen <tommy.christensen@xxxxxxxxx> wrote: > Bear with me, but this is how I understand it: > > - The sk_buff *structure* is read-only on a shared SKB. > skb_share_check(skb) breaks the sharing, thus allowing > updates of skb->dev, skb->len etc. > But the SKB still points at the same data buffer. > > - The *data* buffer is read-only on a cloned SKB. > skb_cow() or skb_copy() or ... gives us a writeable buffer. skb_copy() makes both the struct sk_buff and the data it points to unique and yours alone to modify however you wish. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Fix IPVS to set the statistics of dest zero, Wensong Zhang |
|---|---|
| Next by Date: | [PATCH] (2/2) syncpp - sealevel fix regression, Stephen Hemminger |
| Previous by Thread: | Re: [PATCH] Handle shared SKBs in VLAN receive code, Tommy Christensen |
| Next by Thread: | [2.4/2.6 PATCHES] Change some ip_fragment checks to help IPVS, Julian Anastasov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |