mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gallus <gall.cwpl@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Kernel hard_start_xmit performance vs SOCK_RAW performance
Date: Fri, 26 Jun 2009 16:04:04 +0200	[thread overview]
Message-ID: <b08bcbf50906260704s11181158r27d88e2dd518b1e9@mail.gmail.com> (raw)

Hi,
what path would you choose to rapidly generate packets:
1. Develop kernel space module and user space client tool.
The tool would call the module through ioctl() passing the packet
contents. The module would then construct sbk buffer and call
hard_start_xmit.

2. Develop only user space client tool
The tool would just sent packets through raw sockets.


I'm wondering if amount of system calls in (1) solution will not be a problem?

Which path is generally better?

-- 
Regards,
Gallus

             reply	other threads:[~2009-06-26 14:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 14:04 Gallus [this message]
2009-06-26 14:08 ` Alan Cox
2009-06-26 14:35   ` Gallus
2009-06-26 14:47     ` Peter Chacko

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=b08bcbf50906260704s11181158r27d88e2dd518b1e9@mail.gmail.com \
    --to=gall.cwpl@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®