From: Johannes Berg <johannes@sipsolutions.net> Date: Sun, 04 May 2008 23:32:25 +0200Where is the patch that adds these new members to struct netdevice, and where is the code that uses these new values? I even searched the netdev archives and couldn't find it. Anyways I see your basic idea and this may be the best way to handle the problem. The invariants would be: 1) LL_MAX_HEADER has to include all of these bits. 2) LL_RESERVED_SPACE*() has to take the new needed_headroom into account. Your patch which I can't find, which adds netdev->needed_*, probably does all of that. But I'm just making sure :-) Note that what would be really nice is if we could assert, in dev_queue_xmit, that the SKB has all of the necessary headroom, and give a WARN_ON_ONCE() backtrace if not. If we can ensure that, things like mac80211 and others will not need to skb_realloc_headroom() or anything like that unless they need to modify packet contents after skb->data and the packet is shared (ie. the pskb_expand_headroom(skb, 0, 0, GFP_*) case the TSO drivers use). -- 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 KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Andy Whitcroft | clam |
| Ingo Molnar | [patch] paravirt: VDSO page is essential |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Lovich, Vitali | RE: [PATCH] Packet socket: mmapped IO: PACKET_TX_RING |
| David Miller | [GIT]: Networking |
