From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [Patch 4/5] Network Drop Monitor: Adding drop monitor implementation & Netlink protocol Date: Thu, 02 Apr 2009 17:14:50 +0200 Message-ID: <49D4D66A.50101@trash.net> References: <20090304.030044.163418715.davem@davemloft.net> <20090402093952.GA30553@gondor.apana.org.au> <20090402.025223.242893473.davem@davemloft.net> <20090402095957.GA30799@gondor.apana.org.au> <49D4CECA.3010703@trash.net> <20090402144549.GA764@gondor.apana.org.au> <49D4D260.6020809@trash.net> <20090402145952.GA1276@gondor.apana.org.au> <49D4D480.9030306@trash.net> <20090402150908.GA1382@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: David Miller , nhorman@tuxdriver.com, zbr@ioremap.net, netdev@vger.kernel.org, kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org To: Herbert Xu Return-path: Received: from stinky.trash.net ([213.144.137.162]:47789 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbZDBPO4 (ORCPT ); Thu, 2 Apr 2009 11:14:56 -0400 In-Reply-To: <20090402150908.GA1382@gondor.apana.org.au> Sender: netdev-owner@vger.kernel.org List-ID: Herbert Xu wrote: > On Thu, Apr 02, 2009 at 05:06:40PM +0200, Patrick McHardy wrote: >> Yes, that should always work. For new stuff I think we should try >> to avoid encapsulating larger structures in single attributes though >> since it forces us to do copy everything, instead of just the types >> that really require it (and the padding issues in case of at least >> non-priviledged interfaces). > > Are there any situations where we want to use a struct? Perhaps > we can just ban it altogether for new code? I'd prefer that as well. The only reason to do this is to save a few bytes and cycles for attribute encapsulation. I don't think this matters at all, judging by the fact that I've never seen a userspace implementation using message batching, the current users don't seem to care about performance *that* much.