Received: with ECARTIS (v1.0.0; list netdev); Mon, 13 Sep 2004 14:20:02 -0700 (PDT) Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.104]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i8DLJoFA029221 for ; Mon, 13 Sep 2004 14:19:57 -0700 Received: from northrelay04.pok.ibm.com (northrelay04.pok.ibm.com [9.56.224.206]) by e4.ny.us.ibm.com (8.12.10/8.12.9) with ESMTP id i8DLHhaV761358; Mon, 13 Sep 2004 17:17:43 -0400 Received: from w-sridhar.beaverton.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i8DLItbn086976; Mon, 13 Sep 2004 17:18:56 -0400 Date: Mon, 13 Sep 2004 14:17:41 -0700 (PDT) From: Sridhar Samudrala X-X-Sender: sridhar@localhost.localdomain To: Arnaldo Carvalho de Melo cc: "David S.Miller" , YOSHIFUJI Hideaki , netdev@oss.sgi.com Subject: Re: [PATCH][NET] generalise per socket slab cache use In-Reply-To: <200409110023.34342.acme@conectiva.com.br> Message-ID: References: <200409110023.34342.acme@conectiva.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 8738 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: sri@us.ibm.com Precedence: bulk X-list: netdev Content-Length: 928 Lines: 33 Arnaldo, looks good, but i have a few comments. It is great that SCTP now has its own slabcaches. > +struct ipv6_sk_offset raw_sock_offset = { > + .offset = offsetof(struct udp6_sock, inet6), > +}; I think there is a typo here. udp6_sock should be raw6_sock > - printk(KERN_CRIT "%s: Can't create protocol sock SLAB " > - "caches!\n", __FUNCTION__); You have removed the above critical messages. Is this by intent or a mistake. I am not clear on why we need this new structure ipv6_sk_offset. > +struct ipv6_sk_offset { > + int offset; > +}; > + Instead of adding the new field void *af_specific to struct proto, is it not sufficient to add int pinet6_offset; and assign it as follows for each v6 sock type .pinet6_offset = offsetof(struct struct tcp6_sock, inet6) In inet6_sk_generic(), you can directly use sk->sk_prot->pinet6_offset. Thanks Sridhar