]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98a61dd5082d7ca98b5e9b09dcd750b7b4cdfba1
tree3a0084284ef48af692f7471a5736b0099912a77a
parent74de432970e0a91c94cc9397036204cb4657db33
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