> > 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). > > That would be nice, but I don't think it's possible. > Not sure this is connected so sorry if I'm hijacking on wrong thread. I might miss some emails on this thread. I would like to request some comments on the following observation. I'm just diving into this part of the kernel so please fix me if I've missed something. I've did some measurement of the TX path on an embedded system (2.6.23 kernel) When bridging packets from an ethernet device to wireless there is loss of 12% in the CPU utilization and equivalent throughput reduction in data packets that are checked and expanded in ieee80211_subif_start_xmit function. The expansion is just due to bigger size of the 80211 header size, yet the whole packet is reallocated and copied. As we are reaching 11n rates 200bps and up this starts to be visible. When header was reserved to the proper side already in the ethernet driver the overhead was gone. Yet this doesn't seems to be a correct solution for bridging or forwarding. For example Iwlwifi HW supports scattered packets this would allow just reallocate the header, providing data portion is aligned. Thanks Tomas > johannes > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html