Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262560AbVCVIYD (ORCPT ); Tue, 22 Mar 2005 03:24:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262556AbVCVIYD (ORCPT ); Tue, 22 Mar 2005 03:24:03 -0500 Received: from post.tau.ac.il ([132.66.16.11]:2689 "EHLO post.tau.ac.il") by vger.kernel.org with ESMTP id S262557AbVCVIXv (ORCPT ); Tue, 22 Mar 2005 03:23:51 -0500 Date: Tue, 22 Mar 2005 10:23:48 +0200 (IST) From: Hayim Shaul X-X-Sender: hayim@nova.cs.tau.ac.il To: Arjan van de Ven Cc: Gleb Natapov , linux-kernel@vger.kernel.org Subject: Re: mmap/munmap bug In-Reply-To: <1111478733.7096.36.camel@laptopd505.fenrus.org> Message-ID: References: <1111430042.6952.70.camel@laptopd505.fenrus.org> <20050322075658.GA32445@minantech.com> <1111478733.7096.36.camel@laptopd505.fenrus.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 23 >> 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/