diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-01-15 03:23:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-15 03:50:46 +0100 |
commit | 737639493032afec87fc9e8809f80878f74bd465 (patch) | |
tree | c45130aeceaee76e1a4ec7b20d092d1cb3afb1ce /net | |
parent | decnet: use __dev_get_by_index instead of dev_get_by_index to find interface (diff) | |
download | linux-737639493032afec87fc9e8809f80878f74bd465.tar.xz linux-737639493032afec87fc9e8809f80878f74bd465.zip |
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 <stephen@networkplumber.org>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions