From 9c77ffe83cdaf1ea9c991dbec6f788ce2252526e Mon Sep 17 00:00:00 2001 From: Jiri Benc Date: Mon, 17 Aug 2015 07:38:01 -0700 Subject: [PATCH] datapath: disable LRO Currently, openvswitch tries to disable LRO from the user space. This does not work correctly when the device added is a vlan interface, though. Instead of dealing with possibly complex stacked cross name space relations in the user space, do the same as bridging does and call dev_disable_lro in the kernel. Signed-off-by: Jiri Benc Acked-by: Flavio Leitner Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Upstream: 640b2b107c ("openvswitch: disable LRO"). Signed-off-by: Pravin B Shelar --- datapath/vport-netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c index 05ad0b4ab..de8508756 100644 --- a/datapath/vport-netdev.c +++ b/datapath/vport-netdev.c @@ -134,6 +134,7 @@ static struct vport *netdev_create(const struct vport_parms *parms) if (err) goto error_master_upper_dev_unlink; + dev_disable_lro(netdev_vport->dev); dev_set_promiscuity(netdev_vport->dev, 1); netdev_vport->dev->priv_flags |= IFF_OVS_DATAPATH; rtnl_unlock(); -- 2.20.1