lkml.org 
[lkml]   [2014]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 06/10] vxlan: use __dev_get_by_index instead of dev_get_by_index to find interface
On Tue, 14 Jan 2014 15:41:05 +0800
Ying Xue <ying.xue@windriver.com> wrote:

> The following call chains indicate that vxlan_fdb_parse() is
> under rtnl_lock protection. So if we use __dev_get_by_index()
> instead of dev_get_by_index() to find interface handler in it,
> this would help us avoid to change interface reference counter.
>
> rtnetlink_rcv()
> rtnl_lock()
> netlink_rcv_skb()
> rtnl_fdb_add()
> vxlan_fdb_add()
> vxlan_fdb_parse()
> rtnl_unlock()
>
> rtnetlink_rcv()
> rtnl_lock()
> netlink_rcv_skb()
> rtnl_fdb_del()
> vxlan_fdb_del()
> vxlan_fdb_parse()
> rtnl_unlock()
>
> Cc: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Ying Xue <ying.xue@windriver.com>

Acked-by: Stephen Hemminger <stephen@networkplumber.org>


\
 
 \ /
  Last update: 2014-01-14 19:01    [W:0.064 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site