Re: [RFC patch 1/1] large netlink dumps

2017-04-16 Thread Stephen Hemminger
On Sun, 16 Apr 2017 09:03:08 -0400 Jamal Hadi Salim wrote: > On 17-04-15 11:08 PM, Eric Dumazet wrote: > > On Sat, 2017-04-15 at 13:07 -0400, Jamal Hadi Salim wrote: > >> Eric, > >> > >> How does attached look instead of the 32K? > >> I found it helps to let user space suggest something > >> la

Re: [RFC patch 1/1] large netlink dumps

2017-04-16 Thread Jamal Hadi Salim
On 17-04-15 11:08 PM, Eric Dumazet wrote: On Sat, 2017-04-15 at 13:07 -0400, Jamal Hadi Salim wrote: Eric, How does attached look instead of the 32K? I found it helps to let user space suggest something larger. cheers, jamal Looks dangerous to me, for various reasons. 1) Memory allocations

Re: [RFC patch 1/1] large netlink dumps

2017-04-15 Thread Eric Dumazet
On Sat, 2017-04-15 at 13:07 -0400, Jamal Hadi Salim wrote: > Eric, > > How does attached look instead of the 32K? > I found it helps to let user space suggest something > larger. > > cheers, > jamal Looks dangerous to me, for various reasons. 1) Memory allocations might not like it Have you tr

[RFC patch 1/1] large netlink dumps

2017-04-15 Thread Jamal Hadi Salim
Eric, How does attached look instead of the 32K? I found it helps to let user space suggest something larger. cheers, jamal diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 7b73c7c..bc982ef 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -1849,7 +184