rtnetlink: Compute and store minimum ifinfo dump size
The message size allocated for rtnl ifinfo dumps was limited to a single page. This is not enough for additional interface info available with devices that support SR-IOV and caused a bug in which VF info would not be displayed if more than approximately 40 VFs were created per interface. Implement a new function pointer for the rtnl_register service that will calculate the amount of data required for the ifinfo dump and allocate enough data to satisfy the request. Signed-off-by:Greg Rose <gregory.v.rose@intel.com> Signed-off-by:
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Showing
- drivers/infiniband/core/netlink.c 1 addition, 1 deletiondrivers/infiniband/core/netlink.c
- include/linux/netlink.h 4 additions, 2 deletionsinclude/linux/netlink.h
- include/net/rtnetlink.h 5 additions, 2 deletionsinclude/net/rtnetlink.h
- net/bridge/br_netlink.c 10 additions, 5 deletionsnet/bridge/br_netlink.c
- net/core/fib_rules.c 3 additions, 3 deletionsnet/core/fib_rules.c
- net/core/neighbour.c 6 additions, 5 deletionsnet/core/neighbour.c
- net/core/rtnetlink.c 49 additions, 11 deletionsnet/core/rtnetlink.c
- net/dcb/dcbnl.c 2 additions, 2 deletionsnet/dcb/dcbnl.c
- net/decnet/dn_dev.c 3 additions, 3 deletionsnet/decnet/dn_dev.c
- net/decnet/dn_fib.c 2 additions, 2 deletionsnet/decnet/dn_fib.c
- net/decnet/dn_route.c 3 additions, 2 deletionsnet/decnet/dn_route.c
- net/ipv4/devinet.c 3 additions, 3 deletionsnet/ipv4/devinet.c
- net/ipv4/fib_frontend.c 3 additions, 3 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/inet_diag.c 1 addition, 1 deletionnet/ipv4/inet_diag.c
- net/ipv4/ipmr.c 2 additions, 1 deletionnet/ipv4/ipmr.c
- net/ipv4/route.c 1 addition, 1 deletionnet/ipv4/route.c
- net/ipv6/addrconf.c 10 additions, 6 deletionsnet/ipv6/addrconf.c
- net/ipv6/addrlabel.c 6 additions, 3 deletionsnet/ipv6/addrlabel.c
- net/ipv6/ip6_fib.c 2 additions, 1 deletionnet/ipv6/ip6_fib.c
- net/ipv6/ip6mr.c 2 additions, 1 deletionnet/ipv6/ip6mr.c
Loading
Please register or sign in to comment