Question regarding Socket Buffers

Akhilesh Soni akhilesh at innomedia.soft.net
Tue Nov 28 17:47:47 EST 2006


Hi,

I wish to transmit a skb from a kernel module.For this I've created a skb and filled all the necessary fields and the called the called dev->hard_start_xmit of the underlying driver and this way I'm able to transmit sucessfully.

Now here I've to do memcpy the data every time in the skb->data before transmitting which increases my overhead If I've to transmit a lot of data. Is there any way in which I can give a pointer to my buffer for the data part of the packet and the headers I can fill manually.

Assuming that low level driver supports scatter and gather IO and it can take non-linear skb. What is the procedure to do so. I suppose there is some shared socket info by which can be done.

Please advice if this is feasible and what are the steps that need to be done to do so. I only need to avoid the data copy and my headers are prepared in advance and there are not much changes in the header part of the packet. This packet is an UDP packet.


Thanx in advance.

Regards,
Akhilesh


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20061128/3563e304/attachment.htm 


More information about the Linuxppc-embedded mailing list