datapath: Use __read_mostly annotations where appropriate.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 00:34:22 +0000 (16:34 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:15 +0000 (17:10 -0800)
commit83e3e75ba62705142ef0d5892a1fd2915c5e28c5
tree2a79e62d1edf8993bb214f4d02e824d9ff4a8285
parent9e216c6b593c8e06cd80cccd70d7e4a1029d4d10
datapath: Use __read_mostly annotations where appropriate.

Variables which are changed only infrequently should be annotated
with __read_mostly, which will group them together in a special
linker section.  This prevents them from sharing cache lines with
data on the hot path.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c
datapath/flow.c
datapath/tunnel.c