switchdev: assert rtnl mutex when going over lower netdevs
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:55 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:53 +0000 (06:09 -0700)
commit771acac2ffa5957b91e881908cd4c9657978a209
tree7d6671c6e2f27c0b04ce775d913f09384b89e07f
parentd33eeb645d59ffd14bbc6db977c3783af42dd700
switchdev: assert rtnl mutex when going over lower netdevs

netdev_for_each_lower_dev has to be called with rtnl mutex held. So
better enforce it in switchdev functions.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c