diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-03-09 12:57:48 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2012-03-09 12:57:48 -0800 |
commit | 90a6637d5e7f5f83e3370e05b3716a24fc093fc7 (patch) | |
tree | ef71dcb20ea2138590652ae5045645a989ca4d70 /lib/rtnetlink-link.h | |
parent | 4f925bd39b21c9d189af2cbfce8cc6287419d538 (diff) |
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>
Diffstat (limited to 'lib/rtnetlink-link.h')
-rw-r--r-- | lib/rtnetlink-link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rtnetlink-link.h b/lib/rtnetlink-link.h index b6ddb214..cfdb24ba 100644 --- a/lib/rtnetlink-link.h +++ b/lib/rtnetlink-link.h @@ -37,6 +37,7 @@ struct rtnetlink_link_change { /* Extracted from Netlink attributes. */ const char *ifname; /* Name of network device. */ int master_ifindex; /* Ifindex of datapath master (0 if none). */ + int mtu; /* Current MTU. */ unsigned int ifi_flags; /* Flags of network device. */ }; |