datapath: Allow skbs with a frag list.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 01:03:16 +0000 (17:03 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:16 +0000 (17:10 -0800)
We can already receive packets with a frag list due to reassembly
in CAPWAP tunneling.  Since we can handle it, we might as well open
it up to internal devices as well to prevent linearization.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-internal_dev.c

index 527131d..f5a531f 100644 (file)
@@ -181,8 +181,8 @@ static void do_setup(struct net_device *netdev)
        netdev->tx_queue_len = 0;
 
        netdev->flags = IFF_BROADCAST | IFF_MULTICAST;
-       netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_HIGHDMA
-                               | NETIF_F_HW_CSUM | NETIF_F_TSO;
+       netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST |
+                               NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | NETIF_F_TSO;
 
        vport_gen_rand_ether_addr(netdev->dev_addr);
 }