net: vlan, qlcnic: make vlan_find_dev private
authorDavid Lamparter <equinox@diac24.net>
Sun, 17 Jul 2011 08:53:12 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2011 19:33:22 +0000 (12:33 -0700)
commit69ecca86da4890c13a5e29c51b4ac76a1a8a62c9
tree3a0084284ef48af692f7471a5736b0099912a77a
parent178edcbc6b539dfc21062fed9bf31701a8952e1c
net: vlan, qlcnic: make vlan_find_dev private

there is only one user of vlan_find_dev outside of the actual vlan code:
qlcnic uses it to iterate over some VLANs it knows.

let's just make vlan_find_dev private to the VLAN code and have the
iteration in qlcnic be a bit more direct. (a few rcu dereferences less
too)

Signed-off-by: David Lamparter <equinox@diac24.net>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Amit Kumar Salecha <amit.salecha@qlogic.com>
Cc: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Cc: linux-driver@qlogic.com
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c
include/linux/if_vlan.h
net/8021q/vlan.h