From: Ying Xue Date: Wed, 15 Jan 2014 02:23:41 +0000 (+0800) Subject: vxlan: use __dev_get_by_index instead of dev_get_by_index to find interface X-Git-Tag: v3.14-rc1~94^2~179^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=737639493032afec87fc9e8809f80878f74bd465;p=pandora-kernel.git vxlan: use __dev_get_by_index instead of dev_get_by_index to find interface 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 Signed-off-by: Ying Xue Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed