OSDN Git Service

rtnetlink: fix frame size warning in rtnl_fill_ifinfo
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 17 Nov 2015 13:16:52 +0000 (14:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 20:25:44 +0000 (15:25 -0500)
commitb22b941b2c253a20e1d000c671594c4f3f0a3858
tree3ce06dfe41611a60d5dbdc21c5eac1ae7869cebe
parent19125c1a4fd873421698876f34a06dbe18d25f17
rtnetlink: fix frame size warning in rtnl_fill_ifinfo

Fix the following warning:

  CC      net/core/rtnetlink.o
net/core/rtnetlink.c: In function ‘rtnl_fill_ifinfo’:
net/core/rtnetlink.c:1308:1: warning: the frame size of 2864 bytes is larger than 2048 bytes [-Wframe-larger-than=]
 }
 ^
by splitting up the huge rtnl_fill_ifinfo into some smaller ones, so we
don't have the huge frame allocations at the same time.

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c