linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Question regarding Socket Buffers
@ 2006-11-28  6:47 Akhilesh Soni
  0 siblings, 0 replies; only message in thread
From: Akhilesh Soni @ 2006-11-28  6:47 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 2083 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-28  7:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-28  6:47 Question regarding Socket Buffers Akhilesh Soni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).