rtnetlink: rtnl_fill_stats: avoid an unnecssary stats copy
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 16 Apr 2016 03:36:25 +0000 (20:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2016 16:41:13 +0000 (12:41 -0400)
commit550bce59baf3f3059cd4ae1e268f08f2d2cb1d5c
treeaf92a017007ef4123f16808e5acd00037377eaf6
parentccd37cffe39d7d4f1c1efcd42ec829ec16c7db66
rtnetlink: rtnl_fill_stats: avoid an unnecssary stats copy

This patch passes netlink attr data ptr directly to dev_get_stats
thus elimiating a stats copy.

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c