[PATCH 5/7] hostap: Ensure netlink recv buf size is large enough.
Ben Greear
greearb
Sat Jul 7 08:39:18 PDT 2012
On 07/07/2012 08:16 AM, Jouni Malinen wrote:
> On Fri, Jul 06, 2012 at 09:52:39AM -0700, greearb at candelatech.com wrote:
>> I was getting this error on wpa_supplicant startup when configured
>> for 200+ stations:
>>
>> 1333514002.074458: netlink: recvfrom failed: No buffer space available
>>
>> So, increase rcv buffer size to 1MB so we don't drop netlink
>> packets.
>
> This looks like a very special corner case and unnecessary (and
> potentially undesired) change for more common use cases. If there is a
> megabyte of pending netlink messages in the buffer, something has went
> seriously wrong for normal use case and it sounds like a better idea to
> drop the messages than try to keep collecting more of them.
>
> If this is needed for special cases, it would sound more reasonable to
> increase the buffer once a huge number of virtual interfaces is enabled
> at the same time.
How about a command-line arg to allow users to set the size?
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Hostap
mailing list