]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
myri10ge: myri10ge_fw_name also overrides the rss firmware
authorBrice Goglin <brice@myri.com>
Wed, 13 Aug 2008 19:05:52 +0000 (21:05 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 14 Aug 2008 08:27:06 +0000 (04:27 -0400)
When myri10ge_fw_name is given, use it to override the rss firmware
name as well.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/myri10ge/myri10ge.c

index f1de38f8b7425d7bbf2c2bf81ba3d2dfd8899814..5d76cd09e24613d33d2e6acd9f20796920221138 100644 (file)
@@ -3548,7 +3548,11 @@ static void myri10ge_probe_slices(struct myri10ge_priv *mgp)
 
        /* try to load the slice aware rss firmware */
        old_fw = mgp->fw_name;
-       if (old_fw == myri10ge_fw_aligned)
+       if (myri10ge_fw_name != NULL) {
+               dev_info(&mgp->pdev->dev, "overriding rss firmware to %s\n",
+                        myri10ge_fw_name);
+               mgp->fw_name = myri10ge_fw_name;
+       } else if (old_fw == myri10ge_fw_aligned)
                mgp->fw_name = myri10ge_fw_rss_aligned;
        else
                mgp->fw_name = myri10ge_fw_rss_unaligned;