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 19:59:47 +0000 (12:59 -0700)
commit2666caae11db3d5e9761ef15bf6e214a9ca51af8
tree31543f2d2896deddcc7fba75c3d558e159b9d3ff
parent63633ffd8c23c5acdec127289652dabc2d39ad06
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