From: Johannes Berg <johannes@sipsolutions.net> Date: Fri, 02 May 2008 22:38:51 +0200That's possible. There are paths, that, although they could take advantage of the fact that all of the non-header packet data is going to come from pages, they don't and allocate a full MTU skb->data area anyways. Sure the name could change, but the problem wouldn't. We can't update skb->truesize during arbitray skb->data reallocations, because it could corrupt the socket accounting. On the other hand, if we provide ways for users to subvert the socket buffer limits, we might as well not try to limit anything. Take a look at some ethernet drivers that implement TSO in a way that requires munging the IP headers for whatever reason. If they need to COW the packet data in order to modify it, they always do this with pskb_expand_head(skb, 0, 0, GFP_*) exactly so that they don't modify the SKB data size, and exactly so that the skb->truesize value stays accurate. Try to find out exactly what's going wrong here, you seem to be close. Once we know the precise issue we can talk about real changes to make this easier to cope with and debug in the future. -- 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
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Nigel Cunningham | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Paul Mundt | Re: 2.6.22-rc4-mm2 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
