diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-06-02 08:36:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-03 22:39:35 -0400 |
commit | 640b2b107cec23c754214b62a811465fa8f9257f (patch) | |
tree | c588b135bbccc990623e488e3c75c1d5f0feae46 | |
parent | 88aeca15d637c279171ba441730ef41e4c4ce0ed (diff) |
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: 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>
-rw-r--r-- | net/openvswitch/vport-netdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 4776282c6417..33e6d6e2908f 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c | |||
@@ -125,6 +125,7 @@ static struct vport *netdev_create(const struct vport_parms *parms) | |||
125 | if (err) | 125 | if (err) |
126 | goto error_master_upper_dev_unlink; | 126 | goto error_master_upper_dev_unlink; |
127 | 127 | ||
128 | dev_disable_lro(netdev_vport->dev); | ||
128 | dev_set_promiscuity(netdev_vport->dev, 1); | 129 | dev_set_promiscuity(netdev_vport->dev, 1); |
129 | netdev_vport->dev->priv_flags |= IFF_OVS_DATAPATH; | 130 | netdev_vport->dev->priv_flags |= IFF_OVS_DATAPATH; |
130 | rtnl_unlock(); | 131 | rtnl_unlock(); |