be2net: Allow VFs to call be_cmd_reset_function.
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 11 Feb 2011 13:36:57 +0000 (13:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Feb 2011 05:14:46 +0000 (21:14 -0800)
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index f2d2036..8975340 100644 (file)
@@ -2959,11 +2959,9 @@ static int __devinit be_probe(struct pci_dev *pdev,
        if (status)
                goto ctrl_clean;
 
-       if (be_physfn(adapter)) {
-               status = be_cmd_reset_function(adapter);
-               if (status)
-                       goto ctrl_clean;
-       }
+       status = be_cmd_reset_function(adapter);
+       if (status)
+               goto ctrl_clean;
 
        status = be_stats_init(adapter);
        if (status)