[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121103.150008.1620360914018927907.davem@davemloft.net>
Date: Sat, 03 Nov 2012 15:00:08 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: amwang@...hat.com
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] ipv4: avoid a test in ip_rt_put()
From: Cong Wang <amwang@...hat.com>
Date: Mon, 29 Oct 2012 17:09:06 +0800
> On Mon, 2012-10-29 at 09:33 +0100, Eric Dumazet wrote:
>> From: Eric Dumazet <edumazet@...gle.com>
>>
>> We can save a test in ip_rt_put(), considering dst_release() accepts
>> a NULL parameter, and dst is first element in rtable.
>>
>> Add a BUILD_BUG_ON() to catch any change that could break this
>> assertion.
>>
>> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>> Cc: Cong Wang <amwang@...hat.com>
>
> Acked-by: Cong Wang <amwang@...hat.com>
Applied.
--
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