]> 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)
commit915d324d4b9821313259c5a31b13e8ade0ccbce5
tree3a0084284ef48af692f7471a5736b0099912a77a
parent3955d1d4ff5d119efc71e0e13bb72c8689b51984
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