ofproto: Fix code that keeps track of MTU.
authorBen Pfaff <blp@nicira.com>
Mon, 12 Mar 2012 19:59:47 +0000 (12:59 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Mar 2012 20:26:00 +0000 (13:26 -0700)
commit620257a3114c85ab3baf45af8b098dfba0e70d91
tree92a2608beebffd4eda9d96a71cb24e1fc0e7c84b
parentf00731ddfaa6b1cee19b60b5342d2d8b74db57a7
ofproto: Fix code that keeps track of MTU.

ofport_install() should set the MTU that it finds into the ofport
before calling set_internal_devs_mtu(), because the latter function might
change the MTU and update ofport->mtu and the caller should not incorrectly
overwrite its changes.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c