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:25:26 +0000 (13:25 -0700)
commit99912f0fc31de00e9adcfcdb08d5c2e2d6a24dac
tree89453aba8054cb22e3cf642a7a870bbf1e2e0e36
parent88b6e0a1c73d9a6df69a3a4aab04fc1f986ef008
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