summaryrefslogtreecommitdiff
path: root/include/linux/if_vlan.h
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2014-05-17 01:04:53 +0400
committerDavid S. Miller <davem@davemloft.net>2014-05-17 06:14:49 +0400
commit4085ebe8c31face855fd01ee40372cb4aab1df3a (patch)
tree1f3d2c9b76f1b97c5e264c36884ccdfc530cfee9 /include/linux/if_vlan.h
parent29e98242783ed3ba569797846a606ba66f781625 (diff)
downloadlinux-4085ebe8c31face855fd01ee40372cb4aab1df3a.tar.xz
net: Find the nesting level of a given device by type.
Multiple devices in the kernel can be stacked/nested and they need to know their nesting level for the purposes of lockdep. This patch provides a generic function that determines a nesting level of a particular device by its type (ex: vlan, macvlan, etc). We only care about nesting of the same type of devices. For example: eth0 <- vlan0.10 <- macvlan0 <- vlan1.20 The nesting level of vlan1.20 would be 1, since there is another vlan in the stack under it. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_vlan.h')
0 files changed, 0 insertions, 0 deletions