]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7d9c883fdea2e5a435dcce16332aa5fd183695c
tree85933a915bbe9ebd7c3872feefc1d88972063835
parent2373e599fe7106560733e912ea8a1fd66aaf34ff
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