[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1428992320.6812.20.camel@googlemail.com>
Date: Tue, 14 Apr 2015 08:18:40 +0200
From: Sebastian Poehn <sebastian.poehn@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Sebastian Poehn <sebastian.poehn@...il.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
fw@...len.de, eric.dumazet@...il.com
Subject: Re: [PATCH] ip_forward: Drop frames with attached skb->sk
On Mon, 2015-04-13 at 23:07 -0700, Stephen Hemminger wrote:
> On Tue, 14 Apr 2015 07:52:04 +0200
> Sebastian Poehn <sebastian.poehn@...il.com> wrote:
>
> >
> > + /* this should happen neither */
> > + if (unlikely(skb->sk))
> > + goto drop;
> > +
>
> With gcc, all goto's are already treated as unlikely().
Thanks for that recommendation. But before I re-cook: What about Clang
and ICC?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists