[ovs-dev] [PATCH 13/14] datapath: Allow skbs with a frag list.

Jesse Gross jesse at nicira.com
Thu Dec 2 20:37:02 UTC 2010


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 at nicira.com>
---
 datapath/vport-internal_dev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c
index 3e820a6..a09669b 100644
--- a/datapath/vport-internal_dev.c
+++ b/datapath/vport-internal_dev.c
@@ -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);
 }
-- 
1.7.1





More information about the dev mailing list