[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1344380200.28967.207.camel@edumazet-glaptop>
Date: Wed, 08 Aug 2012 00:56:40 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: force dst_default_metrics to const section
On Tue, 2012-08-07 at 23:44 +0100, Ben Hutchings wrote:
> Any consideration of implementation details like BSS and cache line
> sharing is already outside of 'plain C'. And you don't have to 'mess
> with all arches'; just look at what <linux/init.h> and <linux/module.h>
> do.
"const" is the clean and portable way to express my needs. No magic
section.
All is self-contained in the definition of the metrics, with a nice
comment.
All const are naturally shared by all cpus, without adding extra cache
line boundaries.
Please feel free to send another version, but I wont spend more time
myself.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists