linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Akhilesh Soni" <akhilesh@innomedia.soft.net>
To: <linuxppc-embedded@ozlabs.org>
Subject: Question regarding Socket Buffers
Date: Tue, 28 Nov 2006 12:17:47 +0530	[thread overview]
Message-ID: <025b01c712b9$1e191b00$0a12a8c0@innomedia> (raw)

[-- 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 --]

                 reply	other threads:[~2006-11-28  7:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='025b01c712b9$1e191b00$0a12a8c0@innomedia' \
    --to=akhilesh@innomedia.soft.net \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).