Re: [PATCH] network: increase max number of routes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/19/2013 05:16 AM, Michal Privoznik wrote:
> On 18.06.2013 18:59, Laine Stump wrote:
>> This fixes the problem reported in:
>>
>>    https://bugzilla.redhat.com/show_bug.cgi?id=972690
>>
>>
>>  src/network/bridge_driver.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
>> index d5886fe..f7c2470 100644
>> --- a/src/network/bridge_driver.c
>> +++ b/src/network/bridge_driver.c
>> @@ -2305,7 +2305,8 @@ networkCheckRouteCollision(virNetworkObjPtr network)
>>  {
>>      int ret = 0, len;
>>      char *cur, *buf = NULL;
>> -    enum {MAX_ROUTE_SIZE = 1024*64};
>> +    /* allow for up to 100000 routes (each line is 128 bytes) */
>> +    enum {MAX_ROUTE_SIZE = 128*100000};
>>  
>>      /* Read whole routing table into memory */
>>      if ((len = virFileReadAll(PROC_NET_ROUTE, MAX_ROUTE_SIZE, &buf)) < 0)
>>
> ACK
>

Thanks, I pushed it.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]