From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] bridge: set priority of STP packets Date: Mon, 11 Feb 2013 14:55:45 -0800 Message-ID: <1360623345.20362.26.camel@edumazet-glaptop> References: <20130211102222.37743b22@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , netdev@vger.kernel.org To: Stephen Hemminger Return-path: Received: from mail-pa0-f53.google.com ([209.85.220.53]:54694 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757252Ab3BKWzs (ORCPT ); Mon, 11 Feb 2013 17:55:48 -0500 Received: by mail-pa0-f53.google.com with SMTP id bg4so3270919pad.40 for ; Mon, 11 Feb 2013 14:55:48 -0800 (PST) In-Reply-To: <20130211102222.37743b22@nehalam.linuxnetplumber.net> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 2013-02-11 at 10:22 -0800, Stephen Hemminger wrote: > Spanning Tree Protocol packets should have always been marked as > control packets, this causes them to get queued in the high prirority > FIFO. As Radia Perlman mentioned in her LCA talk, STP dies if bridge > gets overloaded and can't communicate. This is a long-standing bug back > to the first versions of Linux bridge. > > Signed-off-by: Stephen Hemminger > > --- > Please consider adding to stable as well. > > --- a/net/bridge/br_stp_bpdu.c 2013-01-16 09:47:00.599539375 -0800 > +++ b/net/bridge/br_stp_bpdu.c 2013-02-11 08:13:56.315979316 -0800 > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -40,6 +41,7 @@ static void br_send_bpdu(struct net_brid > > skb->dev = p->dev; > skb->protocol = htons(ETH_P_802_2); > + skb->priority = TC_PRIO_CONTROL; > > skb_reserve(skb, LLC_RESERVE); > memcpy(__skb_put(skb, length), data, length); > -- I wonder if we should not use the same for ARP packets, as some bonding modes depend on them as well.