aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@emulex.com>2011-02-11 08:36:57 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-12 00:14:46 -0500
commita4b4dfab6ca808a5d1073cdfb7f39e8ce59f71e2 (patch)
treef9bed18081c7b168a230ae591fee7e062ae11a36 /drivers/net/benet/be_main.c
parentf8617e0860f2b23797431b5ec3a46668eb0f7925 (diff)
be2net: Allow VFs to call be_cmd_reset_function.
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r--drivers/net/benet/be_main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index f2d203637846..8975340614b4 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -2959,11 +2959,9 @@ static int __devinit be_probe(struct pci_dev *pdev,
2959 if (status) 2959 if (status)
2960 goto ctrl_clean; 2960 goto ctrl_clean;
2961 2961
2962 if (be_physfn(adapter)) { 2962 status = be_cmd_reset_function(adapter);
2963 status = be_cmd_reset_function(adapter); 2963 if (status)
2964 if (status) 2964 goto ctrl_clean;
2965 goto ctrl_clean;
2966 }
2967 2965
2968 status = be_stats_init(adapter); 2966 status = be_stats_init(adapter);
2969 if (status) 2967 if (status)