bnx2x, bnx2fc: Use per port max exchange resources
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Mon, 22 Apr 2013 19:22:30 +0000 (19:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 08:06:46 +0000 (04:06 -0400)
commit0eb43b4bb081a1a22574daab9c05286a600dd7fe
tree85933a915bbe9ebd7c3872feefc1d88972063835
parent4c09eed9dc422e980fabdb25434ef68e599b704c
bnx2x, bnx2fc: Use per port max exchange resources

The firmware supports a maximum of 4K FCoE exchanges. In 4-port devices,
or when working in multi-function mode, this resource needs to be distributed
between the various possible FCoE functions.

This information needs to be calculated by bnx2x and propagated into bnx2fc
via cnic. bnx2fc can then use this value to calculate corresponding xid
resources instead of using global constants.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_defs.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/cnic.c
drivers/net/ethernet/broadcom/cnic_if.h
drivers/scsi/bnx2fc/bnx2fc.h
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/bnx2fc/bnx2fc_hwi.c
drivers/scsi/bnx2fc/bnx2fc_io.c