]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IPoIB: Add high DMA feature flag
authorEli Cohen <eli@mellanox.co.il>
Wed, 30 Jan 2008 16:30:46 +0000 (18:30 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 8 Feb 2008 21:39:26 +0000 (13:39 -0800)
All current InfiniBand devices can handle all DMA addresses, and it's
hard to imagine anyone would be silly enough to build a new device
that couldn't.  Therefore, enable the NETIF_F_HIGHDMA feature for IPoIB.

This has no effect for no, but is needed when we enable gather/scatter
support and checksum stateless offloads.

Signed-off-by: Eli Cohen <eli@mellnaox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index 09f5371137a13aba0e5c7add61c1f1d0e3115ef6..f96477a8ca5ac96121ae618d24153870e23f4a48 100644 (file)
@@ -965,7 +965,9 @@ static void ipoib_setup(struct net_device *dev)
        dev->addr_len            = INFINIBAND_ALEN;
        dev->type                = ARPHRD_INFINIBAND;
        dev->tx_queue_len        = ipoib_sendq_size * 2;
-       dev->features            = NETIF_F_VLAN_CHALLENGED | NETIF_F_LLTX;
+       dev->features            = (NETIF_F_VLAN_CHALLENGED     |
+                                   NETIF_F_LLTX                |
+                                   NETIF_F_HIGHDMA);
 
        /* MTU will be reset when mcast join happens */
        dev->mtu                 = IPOIB_PACKET_SIZE - IPOIB_ENCAP_LEN;