[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKfDRXjctGkcqSt9cM=iWbckLt4=7n8434WAA8rr4_cEofEO=Q@mail.gmail.com>
Date: Thu, 17 Oct 2013 22:14:52 +0200
From: Kristian Evensen <kristian.evensen@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] fib_trie: Send RTM_DELROUTE when link goes down
Hi,
On Thu, Oct 17, 2013 at 7:23 PM, Joe Perches <joe@...ches.com> wrote:
>
> Perhaps this memset should be moved into the
> list_for_each_entry_safe loop where cfg is used.
Thanks for your comment. I decided to put it there to avoid calling it
for each route that will be deleted. Since the struct is never
modified (only read in fib_rtmsg()) and we have the rtnl_lock, I
assumed it to be safe. Are there cases where this assumption is wrong?
-Kristian
--
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