mlx4: Temporarily disable offload features
authorXiao Jia <stfairy@gmail.com>
Wed, 28 Oct 2015 00:36:35 +0000 (17:36 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 3 Nov 2015 17:00:38 +0000 (12:00 -0500)
Temporarily disable offload features before they are implemented.
This also allows us to test TCP before actually implementing them.

Signed-off-by: Xiao Jia <stfairy@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/mlx4/en_netdev.c

index 39b0d69..e660376 100644 (file)
@@ -2990,9 +2990,13 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
                dev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6;
 
        dev->hw_features |= NETIF_F_RXCSUM | NETIF_F_RXHASH;
+#if 0 // AKAROS_PORT
        dev->feat = dev->hw_features | NETIF_F_HIGHDMA |
                        NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX |
                        NETIF_F_HW_VLAN_CTAG_FILTER;
+#else
+       dev->feat = NETIF_F_SG;
+#endif
        dev->hw_features |= NETIF_F_LOOPBACK |
                        NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX;