mlx4: Disable the user-level bypass
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 8 Mar 2018 01:19:17 +0000 (17:19 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Mar 2018 20:43:05 +0000 (16:43 -0400)
Pending a rewrite for 9ns.  No one has used this in years either.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/Kbuild
kern/drivers/net/mlx4/main.c

index 116ec4d..1075fa6 100644 (file)
@@ -2,8 +2,8 @@
 obj-y                                                  += dummy.o
 obj-$(CONFIG_BNX2X)                            += bnx2x/
 obj-$(CONFIG_MLX4_CORE)                                        += mlx4/
-obj-$(CONFIG_MLX4_INFINIBAND)                          += mlx4u/
-obj-$(CONFIG_MLX4_INFINIBAND)                          += udrvr/
+#obj-$(CONFIG_MLX4_INFINIBAND)                         += mlx4u/
+#obj-$(CONFIG_MLX4_INFINIBAND)                         += udrvr/
 obj-y                                                  += ether8139.o
 obj-y                                                  += ether82563.o
 obj-y                                                  += ethermii.o
index 9d87e8e..494ff68 100644 (file)
@@ -3951,6 +3951,7 @@ static int mlx4_pnp(struct ether *edev)
         * mlx4_init(), mlx4_en_init() and mlx4_ib_init() should be invoked
         * from ethermlx4_link() prior to device probe.
         */
+#if 0 // AKAROS_PORT
 #ifdef CONFIG_MLX4_INFINIBAND
        extern int mlx4_ib_init();
        extern int ib_uverbs_init();
@@ -3958,6 +3959,7 @@ static int mlx4_pnp(struct ether *edev)
        ib_uverbs_init();
        mlx4_ib_init();
 #endif
+#endif
 
        // edev->ctlr is already initialized to struct mlx4_en_priv.
        pdev = persist->pdev;