netdev
[Top] [All Lists]

[RFC][0/2] remove atm_find_ci(); convert vcc_sklist to hash

To: netdev@xxxxxxxxxxx
Subject: [RFC][0/2] remove atm_find_ci(); convert vcc_sklist to hash
From: chas williams <chas@xxxxxxxxxxxxxxxx>
Date: Wed, 08 Oct 2003 08:46:26 -0400
Reply-to: chas3@xxxxxxxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
the following two patches (which should be applied to a current 2.6 tree)
obseletes atm_find_ci() which races the vpi/vci allocation (since the 
actual allocation is delayed until after the entering the drivers open()
routine).  all drivers now use the built-in find_ci().  to address
performance issues the second patch converts the vcc_sklist to a hash
based on the lower 5 bits in the vci.  should this be tunable via config?
for most users (< 100 vccs) this should be fairly efficient.  on a side
note, signalling/ilmi/control vccs are all in bucket 0.  the control
vccs probably should be given a non-zero vci to make this 'better'.

<Prev in Thread] Current Thread [Next in Thread>