netdev
[Top] [All Lists]

Re: [patch] add iocb to network protocols

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: [patch] add iocb to network protocols
From: Benjamin LaHaise <bcrl@xxxxxxxxxx>
Date: Thu, 10 Oct 2002 19:40:25 -0400
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20021010.162240.102769920.davem@redhat.com>; from davem@redhat.com on Thu, Oct 10, 2002 at 04:22:40PM -0700
References: <20021010183528.A13432@redhat.com> <20021010.162240.102769920.davem@redhat.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Thu, Oct 10, 2002 at 04:22:40PM -0700, David S. Miller wrote:
> 
> +#include <net/scm.h> /* for sock_iocb */
> 
> What is this?

The private area of an iocb for network operations contains a struct 
scm_cookie.  The alternative is to allocate it via kmalloc when needed, 
but there isn't currently a way of identifying which network protocols 
require the scm_cookie.  Since most network protocols do not use it, 
would you rather remove the scm_cookie out of the default path and 
allow the protocol to choose to create it?  That would remove the 
dependancy on scm_cookie from sock_iocb entirely.

                -ben
-- 
"Do you seek knowledge in time travel?"


<Prev in Thread] Current Thread [Next in Thread>