Thread (12 messages) flat view 12 messages, 3 authors, 2012-08-08

Re: [PATCH] net: force dst_default_metrics to const section

From: Eric Dumazet <hidden>
Date: 2012-08-07 22:56:45

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help