netdev-linux: Cache error code from mtu ioctl.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 9 Mar 2012 21:32:10 +0000 (13:32 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 9 Mar 2012 21:32:10 +0000 (13:32 -0800)
commit7692cd565204b6e43194429b843ee75fe4acaaf3
tree52817dfea4a23adc5bb218a64ad1b97a8e876153
parent784f6f3e879c8ee390978ee5b2b5e61713ca7903
netdev-linux: Cache error code from mtu ioctl.

netdev linux devices uses mtu ioctl to get and set MTU for a device.
By caching error code from ioctl we can reduce number of ioctl calls
for device which is unregistered from system.
netdev notification is used to update mtu which saves get-mtu-ioctl.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-linux.c
lib/netdev.c
lib/rtnetlink-link.c
lib/rtnetlink-link.h