be2net: fix max VFs reported by HW
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 28 Aug 2012 20:37:41 +0000 (20:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 17:27:05 +0000 (13:27 -0400)
commit7c5a524221dc3cf599a6aa4773eb0c1e2ca38adb
tree1e93f61b2a250b70b9c5f5f020692f6a4ab92e57
parent4cbdaf6d520b6bd9a1565525e5ad1967cb74e191
be2net: fix max VFs reported by HW

BE3 FW allocates VF resources for upto 30 VFs per PF while a max value of 32
may be reported via PCI config space. Fix this in the driver.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c