ofproto: Initialize ports immediately upon ofproto creation.
authorBen Pfaff <blp@nicira.com>
Wed, 20 Apr 2011 22:13:46 +0000 (15:13 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 May 2011 17:27:21 +0000 (10:27 -0700)
commitd4cb239a1ccbdf8e9f1ac70a38d995b326c7997f
tree31b14f6bd99593c260c8186f5b6ea4e721f1c89f
parentd647f0a7442e7c9a0aa6026f55de2c74734599af
ofproto: Initialize ports immediately upon ofproto creation.

I don't see why we should delay initializing the ports to the first call
of ofproto_run1().  We originally did initialize the ports in
ofproto_create(), but back in January 2010 Jesse moved the call into
ofproto_run1() in commit 149f577a "netdev: Fully handle netdev lifecycle
through refcounting."  The commit message doesn't explain why this
particular change was made, so I can only assume that it was important at
the time.  Now, however, everything seems to work fine with initialization
done in the most logical place.
ofproto/ofproto.c