datapath: Directly use methods for protecting RCU/RTNL data.
authorJesse Gross <jesse@nicira.com>
Sat, 19 Nov 2011 21:45:48 +0000 (13:45 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 21 Nov 2011 18:29:17 +0000 (10:29 -0800)
commitcbbf4e1e47470b41a68c8ee936158da9d7739cae
treefd3d8d0a9b41475cf8be2c20d02d7c7b070cbcdc
parent20d035b27559fe3823a09d72293c81281d3516c4
datapath: Directly use methods for protecting RCU/RTNL data.

We currently have a wrapper to protect the datapath ports array.
However, this can lead to confusion over exactly what lock is
protecting the access (either RTNL or RCU).  This removes the
wrapper in favor of directly accessing the data, which also has
the benefit of being less permissive about what lock we allow so
it can be restricted to the one that we expect.

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