[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130531.012922.204204156468438634.davem@davemloft.net>
Date: Fri, 31 May 2013 01:29:22 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: erik.hugne@...csson.com
Cc: paul.gortmaker@...driver.com, netdev@...r.kernel.org,
jon.maloy@...csson.com, ying.xue@...driver.com
Subject: Re: [PATCH net-next 02/12] tipc: Add "max_ports" configuration
parameter
From: Erik Hugne <erik.hugne@...csson.com>
Date: Fri, 31 May 2013 10:25:38 +0200
> On Thu, May 30, 2013 at 03:49:25PM -0700, David Miller wrote:
>> View compile time constants and module parameters as artificial
>> limits, they are terrible and unnecessary.
>>
>> There is no reason you cannot restructure this table so that you
>> can dynamically size it at run time.
>
> The TIPC ref table index is used directly as the port identity in the
> TIPC publications. When a socket is bound, this ID is published to all
> other nodes in the cluster.
> If we where to allow the table to be changed dynamically, we would need
> to change the port identities for already bound sockets/ports, withdraw
> the old identity and publish the new one.
No you do not, simply grow the table just like we dynamically grow
hash tables in response to network/socket activity elsewhere in the
kernel. You'll only allocate new indexes from the newly allocated
area, the existing indexes will remain the same.
I really will accept no excuses for this limitation, especially if
the response is an ugly module paramter.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists