netdev-linux: Cache the result of previous reading of in4 address.
authorAlex Wang <alexw@nicira.com>
Fri, 24 Jul 2015 21:28:42 +0000 (14:28 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 28 Jul 2015 16:34:31 +0000 (09:34 -0700)
commit7ae51e190c72c106cbb99a2b2fdd979f94dd94a5
treecfdedeb3f796cf051749dfe55cd960fe4e978f43
parent11df5f06e4ce0db686c136caa2584fe26e5f1fb4
netdev-linux: Cache the result of previous reading of in4 address.

This commit makes netdev_linux_set_in4() cache the result of previous
reading of in4 address (successful or not).

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-linux.c