summaryrefslogtreecommitdiff
path: root/net/8021q/vlan_dev.c
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2014-05-16 17:04:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-31 13:20:34 -0700
commitd0166f814a1daef5992c19d5c18f2860e17ad2f1 (patch)
treea22b879759637a8841908cd8683d60a84dc8684e /net/8021q/vlan_dev.c
parent69ab2a8b80f2a479df6728effb935174dd5303bf (diff)
downloadlinux-stable-d0166f814a1daef5992c19d5c18f2860e17ad2f1.tar.gz
linux-stable-d0166f814a1daef5992c19d5c18f2860e17ad2f1.tar.bz2
linux-stable-d0166f814a1daef5992c19d5c18f2860e17ad2f1.zip
net: Allow for more then a single subclass for netif_addr_lock
[ Upstream commit 25175ba5c9bff9aaf0229df34bb5d54c81633ec3 ] Currently netif_addr_lock_nested assumes that there can be only a single nesting level between 2 devices. However, if we have multiple devices of the same type stacked, this fails. For example: eth0 <-- vlan0.10 <-- vlan0.10.20 A more complicated configuration may stack more then one type of device in different order. Ex: eth0 <-- vlan0.10 <-- macvlan0 <-- vlan1.10.20 <-- macvlan1 This patch adds an ndo_* function that allows each stackable device to report its nesting level. If the device doesn't provide this function default subclass of 1 is used. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/8021q/vlan_dev.c')
0 files changed, 0 insertions, 0 deletions