]> git.baikalelectronics.ru Git - kernel.git/commit
cnic: Fine-tune CID memory space calculation.
authorMichael Chan <mchan@broadcom.com>
Thu, 24 Jun 2010 14:58:37 +0000 (14:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jun 2010 03:37:18 +0000 (20:37 -0700)
commitf10d04113075dedda183ec4fb3747b6b2df58fa8
tree88e5e9bce57401ebfcc3d1ac9dec9c1af10d1d82
parent98b2f4a4157ca3a915b0a79e72da59334eed8c31
cnic: Fine-tune CID memory space calculation.

The current code makes assumptions about the CID (context ID) memory
space and starting CID that may not be always correct when firmware
changes.  In particular, BNX2_ISCSI_START_CID may not always be fixed.
We now calculate cp->max_cid_space and cp->iscsi_start_cid dynamically
instead of using fixed constants.  The unused cp->max_iscsi_conn is also
eliminated.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c
drivers/net/cnic.h