A method to dynamically allocate credits for a particular port to port
link based on measured link distance during the initial interswitch link
configuration process. An apparatus implementing such method or a
software upgrade to retrofit existing switches.