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>
This commit is contained in:
parent
4c09eed9dc
commit
0eb43b4bb0
8 changed files with 64 additions and 42 deletions
|
@ -5544,8 +5544,10 @@ static struct cnic_dev *init_bnx2x_cnic(struct net_device *dev)
|
|||
|
||||
if (!(ethdev->drv_state & CNIC_DRV_STATE_NO_ISCSI))
|
||||
cdev->max_iscsi_conn = ethdev->max_iscsi_conn;
|
||||
if (CNIC_SUPPORTS_FCOE(cp))
|
||||
if (CNIC_SUPPORTS_FCOE(cp)) {
|
||||
cdev->max_fcoe_conn = ethdev->max_fcoe_conn;
|
||||
cdev->max_fcoe_exchanges = ethdev->max_fcoe_exchanges;
|
||||
}
|
||||
|
||||
if (cdev->max_fcoe_conn > BNX2X_FCOE_NUM_CONNECTIONS)
|
||||
cdev->max_fcoe_conn = BNX2X_FCOE_NUM_CONNECTIONS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue