Skip to content

Commit

Permalink
datapath: disable LRO
Browse files Browse the repository at this point in the history
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 <jbenc@redhat.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Upstream: 640b2b107c ("openvswitch: disable LRO").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
  • Loading branch information
Jiri Benc authored and Pravin B Shelar committed Aug 18, 2015
1 parent f8fe60b commit 9c77ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datapath/vport-netdev.c
Expand Up @@ -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();
Expand Down

0 comments on commit 9c77ffe

Please sign in to comment.