be2net: fix max_evt_qs calculation for BE3 in SR-IOV config
authorSuresh Reddy <suresh.reddy@emulex.com>
Mon, 6 Jan 2014 07:32:25 +0000 (13:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2014 18:09:21 +0000 (13:09 -0500)
commite3dc867c1758fc4ae6fc6b63ea6bbcd454479f08
tree1bbc5ca4524c6025ef4a9c963caf3846dbd18eea
parent5eeff6354faffb3f140d690eec1cede78de53b06
be2net: fix max_evt_qs calculation for BE3 in SR-IOV config

The driver wrongly assumes 16 EQs/vectors are available for each BE3 PF.
When SR-IOV is enabled, a BE3 PF can support only a max of 8 EQs.

Signed-off-by: Suresh Reddy <suresh.reddy@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