/[linux-patches]/genpatches-2.6/trunk/2.6.14/1055_4_bridge-features-recompute.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1055_4_bridge-features-recompute.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 232 - (show annotations) (download) (as text)
Thu Dec 15 16:22:43 2005 UTC (14 years, 11 months ago) by dsd
File MIME type: text/x-diff
File size: 1249 byte(s)
Linux 2.6.14.4
1 From stable-bounces@linux.kernel.org Mon Dec 12 12:27:13 2005
2 Date: Thu, 24 Nov 2005 00:00:03 -0800
3 Message-Id: <200511240800.jAO803jw027240@hera.kernel.org>
4 From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
5 To: git-commits-head@vger.kernel.org
6 Cc:
7 Subject: BRIDGE: recompute features when adding a new device
8
9 From: Olaf Rempel <razzor@kopf-tisch.de>
10
11 [BRIDGE]: recompute features when adding a new device
12
13 We must recompute bridge features everytime the list of underlying
14 devices changes, or we might end up with features that are not supported
15 by all devices (eg. NETIF_F_TSO)
16 This patch adds the missing recompute when adding a device to the bridge.
17
18 Signed-off-by: Olaf Rempel <razzor@kopf-tisch.de>
19 Signed-off-by: David S. Miller <davem@davemloft.net>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21
22 ---
23 net/bridge/br_if.c | 1 +
24 1 file changed, 1 insertion(+)
25
26 --- linux-2.6.14.3.orig/net/bridge/br_if.c
27 +++ linux-2.6.14.3/net/bridge/br_if.c
28 @@ -366,6 +366,7 @@ int br_add_if(struct net_bridge *br, str
29
30 spin_lock_bh(&br->lock);
31 br_stp_recalculate_bridge_id(br);
32 + br_features_recompute(br);
33 if ((br->dev->flags & IFF_UP)
34 && (dev->flags & IFF_UP) && netif_carrier_ok(dev))
35 br_stp_enable_port(p);

  ViewVC Help
Powered by ViewVC 1.1.20