ofproto: Don't use netdev_nodev_get_etheraddr() in pick_datapath_id().
authorBen Pfaff <blp@nicira.com>
Tue, 28 Jul 2009 18:01:44 +0000 (11:01 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 30 Jul 2009 23:07:14 +0000 (16:07 -0700)
commitfa60c01995566c3ec0f7a153aaafa6826128a23a
treeecef94517f1357b5eb8c418c48cf3e61a721ee45
parent0efaf4b50c99bfdc255a27bb55312744feb34cc6
ofproto: Don't use netdev_nodev_get_etheraddr() in pick_datapath_id().

The netdev_nodev_*() functions have always been a bit of a kluge.  It's
better to keep a network device open than to open it every time that it is
needed.

This commit gets rid of a usage of netdev_nodev_get_etheraddr() in
pick_datapath_id(), by using the netdev that the datapath already has open
for the local port.
ofproto/ofproto.c