On Thursday 24 July 2008, Herbert Xu wrote: Hi Herbert, Thanks for taking the time for the review.Initially I tried putting the new member directly into the skb, but then I run into issues with cloned packets, since I needed a reference counter to know when to delete the cmsg queue. I've noticed that the shared info already has a reference counter and I've though that taking advantage of it would be better then doing it myself. The shinfo seems to be the right place also because the cmsg queue can not be modified once the skb has been pushed into the network stack. It sort of is like data, only with special meaning. Is this approach wrong? Or is there a better way of doing it? From what I understand, the shinfo remains shared, thus there is no need to do the copy here. In copy_skb_header we do a pointer copy. This should be enough for packets that are cloned or partially cloned. The only problem is when we do a full copy of the packet, where shinfo should be also copied. skb_cmsg_copy is called only in these cases. I think this is only touching the skb header, not the shinfo. Thus we should be safe? BTW: I have a dilemma with regard to fully copied skbs: should we copy the cmsg queue as well, or should we just prune it in the copy? I don't see a real usecase for doing the copy at this point, but since these is at core level, maybe it is a good idea to be conservative and do the copying? Thanks, tavi -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| David Newall | Re: Slow DOWN, please!!! |
| Ian Campbell | Re: [PATCH] x86: Construct 32 bit boot time page tables in native format. |
| Matthias Scheler | Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current |
| Greg Troxel | Re: Interface to change NFS exports |
| Thor Lancelot Simon | metadata cache and memory fragmentation |
| YAMAMOTO Takashi | amap memory allocation |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Dushan Tcholich | Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 |
