]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Count number of possible FCoE interfaces
authorDmitry Kravkov <dmitry@broadcom.com>
Mon, 27 May 2013 04:08:29 +0000 (04:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2013 04:41:49 +0000 (21:41 -0700)
commit2453079323b7f785a28d46d47f74491c0e4eeb93
tree2be31acf1b1faf5f958cee715b57390541ffbfc4
parent3ad017b0b7a68a0751c24547879a11f172cd63ab
bnx2x: Count number of possible FCoE interfaces

Commit c7d9c883fdea2e5a435dcce16332aa5fd183695c
"bnx2x, bnx2fc: Use per port max exchange resources" has changed the number
of available FCoE exchanges, even in scenarios when some of the functions has
no FCoE support; This needlessly degraded the available resources.

Remedy this by calculating the maximal number of functions that may actually
utilize said connection.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
CC: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c