netdev-linux: Simplify get_stats_via_netlink().
authorBen Pfaff <blp@nicira.com>
Wed, 4 Dec 2013 23:46:55 +0000 (15:46 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 30 Dec 2013 22:04:21 +0000 (14:04 -0800)
commit13a24df8b9ac97b973379dc19d88463feeb27fbd
tree622e35256062f68e9fa74a160cc43c209ae9ae40
parent35eef899b3fc9195ebfa249cfb27350293dac712
netdev-linux: Simplify get_stats_via_netlink().

There's no need to obtain the ifindex, because RTM_GETLINK is happy to take
the interface name.  There's no need to do a full nl_policy_parse(),
because we only need a single attribute.

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