bnx2x, cnic: Consolidate iSCSI/FCoE shared mem logic in bnx2x
authorVladislav Zolotarov <vladz@broadcom.com>
Mon, 31 Jan 2011 14:39:17 +0000 (14:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Feb 2011 04:44:46 +0000 (20:44 -0800)
commit2ba451421b23636c45fabfa522858c5c124b3673
treefc576f3ac8a064b50747533522940f05e39f70c1
parent0c838ff1ade71162775afffd9e5c6478a60bdca6
bnx2x, cnic: Consolidate iSCSI/FCoE shared mem logic in bnx2x

Move all shared mem code to bnx2x to avoid code duplication.  bnx2x now
performs:

- Read the FCoE and iSCSI max connection information.
- Read the iSCSI and FCoE MACs from NPAR configuration in shmem.
- Block the CNIC for the current function if there is neither FCoE nor
  iSCSI valid configuration by returning NULL from bnx2x_cnic_probe().

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.h
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_hsi.h
drivers/net/bnx2x/bnx2x_main.c
drivers/net/cnic.c
drivers/net/cnic_if.h