Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 640b2b10 authored by Jiri Benc's avatar Jiri Benc Committed by David S. Miller
Browse files

openvswitch: 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: default avatarJiri Benc <jbenc@redhat.com>
Acked-by: default avatarFlavio Leitner <fbl@redhat.com>
Acked-by: default avatarPravin B Shelar <pshelar@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88aeca15
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,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();