From: Vlad Yasevich Date: Fri, 16 May 2014 21:04:53 +0000 (-0400) Subject: net: Find the nesting level of a given device by type. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~16^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4085ebe8c31face855fd01ee40372cb4aab1df3a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed