]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.fixes/vlan-gso-size-fix
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / vlan-gso-size-fix
CommitLineData
2cb7cef9
BS
1From: Hannes Reinecke <hare@suse.de>
2Date: Wed, 17 Sep 2008 16:44:46 +0200
3Subject: vlan: device not reading gso max size of parent.
4References: FATE#303913
5
6The vlan devices are not reading the gso max size of the parent device. As
7a result devices that do not support 64K max gso size are currently
8failing.
9
10This issue is seen on 2.6.26 kernels as well and the same patch should be
11able to be applied without any issues.
12
13Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
14Signed-off-by: Hannes Reinecke <hare@suse.de>
15---
16 net/8021q/vlan.c | 1 +
17 net/8021q/vlan_dev.c | 1 +
18 2 files changed, 2 insertions(+), 0 deletions(-)
19
20diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
21index b661f47..f0e335a 100644
22--- a/net/8021q/vlan.c
23+++ b/net/8021q/vlan.c
24@@ -394,6 +394,7 @@ static void vlan_transfer_features(struct net_device *dev,
25
26 vlandev->features &= ~dev->vlan_features;
27 vlandev->features |= dev->features & dev->vlan_features;
28+ vlandev->gso_max_size = dev->gso_max_size;
29
30 if (old_features != vlandev->features)
31 netdev_features_change(vlandev);
32diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
33index 4bf014e..97688cd 100644
34--- a/net/8021q/vlan_dev.c
35+++ b/net/8021q/vlan_dev.c
36@@ -607,6 +607,7 @@ static int vlan_dev_init(struct net_device *dev)
37 (1<<__LINK_STATE_PRESENT);
38
39 dev->features |= real_dev->features & real_dev->vlan_features;
40+ dev->gso_max_size = real_dev->gso_max_size;
41
42 /* ipv6 shared card related stuff */
43 dev->dev_id = real_dev->dev_id;
44--
451.5.2.4
46