datapath: The definition of struct tbl is needed by rcu_dereference()
authorSimon Horman <horms@verge.net.au>
Tue, 2 Nov 2010 12:35:14 +0000 (21:35 +0900)
committerJesse Gross <jesse@nicira.com>
Tue, 2 Nov 2010 18:50:44 +0000 (11:50 -0700)
commitac0ceab6e39da04d146b41a8a2828c7288941a00
tree0645bb6da0985778c6c479184dc2b25801dda962
parentded8fe209ff51df31ce6e7b74787584edfe00724
datapath: The definition of struct tbl is needed by rcu_dereference()

Due to the use of typeof(*p) by __rcu_dereference_check(),
which was introduced by the Linux changeset
ca5ecddfa8fcbd948c95530e7e817cee9fb43a3d
(rcu: define __rcu address space modifier for sparse) the definition
of the type of a the parameter to rcu_dereference() is needed.

In terms of the datapath, this means that the definition of
struct tbl needs to be available wherever rcu_dereference(dp->table)
is called.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/table.c
datapath/table.h