Need to add proprietary headers on outgoing packets
Using a kernel module that sits between the kernel stack and the network driver, I need to put extra headers on all packets going out of Linux. Note this will result in "frames" that are not really Ethernet frames and the network driver HW is being used more as a DMA engine than an Ethernet device.
The headers are larger that any headroom left on the packets. I would like to avoid using skb_realloc_headroom() for performance reasons; is there any way to do this? I originally thought changing NET_SKB_PAD would help, but apparently that is only for Rx packets.
Maybe changing MAX_HEADER will help? It isn't clear though whether this would help for many cases or not....
Thanks,
Zack
Last edited by zman2245; 04-16-2010 at 06:47 PM.
|