diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2016-11-15 09:39:03 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-16 03:40:07 (GMT) |
commit | 7e75f74a171a8146cc3ee92d5562878b40c25fb5 (patch) | |
tree | 0922958766d190b0512e4a56103bc16711541b5e /mm/util.c | |
parent | e88a2766143a27bfe6704b4493b214de4094cf29 (diff) | |
download | linux-7e75f74a171a8146cc3ee92d5562878b40c25fb5.tar.xz |
rtnetlink: fix rtnl_vfinfo_size
The size reported by rtnl_vfinfo_size doesn't match the space used by
rtnl_fill_vfinfo.
rtnl_vfinfo_size currently doesn't account for the nest attributes
used by statistics (added in commit 3b766cd83232), nor for struct
ifla_vf_tx_rate (since commit ed616689a3d9, which added ifla_vf_rate
to the dump without removing ifla_vf_tx_rate, but replaced
ifla_vf_tx_rate with ifla_vf_rate in the size computation).
Fixes: 3b766cd83232 ("net/core: Add reading VF statistics through the PF netdevice")
Fixes: ed616689a3d9 ("net-next:v4: Add support to configure SR-IOV VF minimum and maximum Tx rate through ip tool")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions