be2net: Fix to fail probe if MSI-X enable fails for a VF
authorSomnath Kotur <somnath.kotur@emulex.com>
Thu, 2 May 2013 03:37:08 +0000 (03:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:43:34 +0000 (16:43 -0400)
commitc2bba3dfc16e625e73f986a21110cb784cddd30a
tree814b14a06137f9640db7d1798f06ec887d6c851c
parent04d3d6247fa39d4ee6488f1bd5314879ab9d5c9d
be2net: Fix to fail probe if MSI-X enable fails for a VF

As per SPEC, INTx mode is not supported on VFs. So if enable_msix fails,
then just fail probe. Also bail out of be_open if irq_register fails.

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c