]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Hannes Reinecke <hare@suse.de> |
2 | Date: Wed, 17 Sep 2008 16:44:46 +0200 | |
3 | Subject: vlan: device not reading gso max size of parent. | |
4 | References: FATE#303913 | |
5 | ||
6 | The vlan devices are not reading the gso max size of the parent device. As | |
7 | a result devices that do not support 64K max gso size are currently | |
8 | failing. | |
9 | ||
10 | This issue is seen on 2.6.26 kernels as well and the same patch should be | |
11 | able to be applied without any issues. | |
12 | ||
13 | Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> | |
14 | Signed-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 | ||
20 | diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c | |
21 | index 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); | |
32 | diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c | |
33 | index 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 | -- | |
45 | 1.5.2.4 | |
46 |