Re: mmap/munmap bug

From: Hayim Shaul (hayim_at_post.tau.ac.il)
Date: 03/22/05

  • Next message: Ingo Molnar: "Re: Latency tests with 2.6.12-rc1"
    Date:	Tue, 22 Mar 2005 10:23:48 +0200 (IST)
    To: Arjan van de Ven <arjan@infradead.org>
    
    

    >> Does it support zero copy not only for send but also for receive? Can we
    >> receive packets directly to userspace buffers?
    >
    > that it can't currently, but without some major protocol stack rework
    > that's not going to be easy. If you want to help do that work,
    > excellent! Be sure to contact the people on net-dev mailinglist since
    > they are the ones having looked at this previously.

    My case is simpler, as the application I attend it to is similar to a NAT.
    A packet comes in, a little alternation of the headers and off it goes
    again. So there's no TCP-stack or anything.

    What I thought of doing, is map the skbuff to user-space. Have the
    user-application alter the headers. Send the (same) skbuff from
    kernel-space.

    Does there exist anything equivalent?

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ingo Molnar: "Re: Latency tests with 2.6.12-rc1"

    Relevant Pages

    • Re: mmap/munmap bug
      ... > What I thought of doing, is map the skbuff to user-space. ... > user-application alter the headers. ... mmaps some ringbuffer with incomming packets. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [(re)Announce] Emulex LightPulse Device Driver
      ... > A bunch of comments from looking over the headers and itnerface to ... > upper layers a little: (next I'll try to understand what's going on ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Staircase Scheduler v6.3 for 2.6.7-rc2
      ... > The test is a make of headers for a propritary exec. ... Out of curiosity, what happens from nfs? ... assume you've excluded memory effects? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Splitting kernel headers and deprecating __KERNEL__
      ... > headers will get exactly what they got before if we do it right. ... between 'cleanup' and 'breakage'. ... continue to compile and silently do the wrong thing. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.6.18-rc4] aoe [04/13]: zero copy write 1 of 2
      ... Alan objected to the direct setting of skb->len in one of them. ... pre-allocated part of the skbuff for headers, ... interface would be able to maintain the consistency of the skbuff ...
      (Linux-Kernel)