netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4]  Fix lockdep issues with stacked devices
@ 2014-05-16 17:18 Vlad Yasevich
  2014-05-16 17:18 ` [PATCH v2 1/4] net: Find the nesting level of a given device by type Vlad Yasevich
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Vlad Yasevich @ 2014-05-16 17:18 UTC (permalink / raw)
  To: netdev; +Cc: dingtianhong, kaber, vfalico, jiri, Vlad Yasevich

Recent commit dc8eaaa006350d24030502a4521542e74b5cb39f
    vlan: Fix lockdep warning when vlan dev handle notification

attempted to solve lockdep issues with vlans where multiple
vlans were stacked.  However, the code does not work correctly
when the vlan stack is interspersed with other devices in between
the vlans.  Additionally, similar lockdep issues show up with other
devices.

This series provides a generic way to solve these issue for any
devices that can be stacked.  It also addresses the concern for
vlan and macvlan devices.  I am not sure whether it makes sense
to do so for other types like team, vxlan, and bond.

Thanks
-vlad

Since v1:
  - Fixed up a goofed-up rebase.
    * is_vlan_dev() should be bool and that change belongs in patch3.
    * patch4 should not have any vlan changes in it.

Vlad Yasevich (4):
  net: Find the nesting level of a given device by type.
  net: Allow for more then a single subclass for netif_addr_lock
  vlan: Fix lockdep warning with stacked vlan devices.
  macvlan: Fix lockdep warnings with stacked macvlan devices

 drivers/net/macvlan.c      | 12 +++++++++--
 include/linux/if_macvlan.h |  1 +
 include/linux/if_vlan.h    |  3 ++-
 include/linux/netdevice.h  | 18 +++++++++++++++-
 net/8021q/vlan.c           |  1 +
 net/8021q/vlan_dev.c       | 52 ++++++++--------------------------------------
 net/core/dev.c             | 49 ++++++++++++++++++++++++++++++++++++++++++-
 7 files changed, 88 insertions(+), 48 deletions(-)

-- 
1.9.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-16 18:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-16 17:18 [PATCH v2 0/4] Fix lockdep issues with stacked devices Vlad Yasevich
2014-05-16 17:18 ` [PATCH v2 1/4] net: Find the nesting level of a given device by type Vlad Yasevich
2014-05-16 17:32   ` Eric Dumazet
2014-05-16 18:34     ` Vlad Yasevich
2014-05-16 17:18 ` [PATCH v2 2/4] net: Allow for more then a single subclass for netif_addr_lock Vlad Yasevich
2014-05-16 17:18 ` [PATCH v2 3/4] vlan: Fix lockdep warning with stacked vlan devices Vlad Yasevich
2014-05-16 17:18 ` [PATCH v2 4/4] macvlan: Fix lockdep warnings with stacked macvlan devices Vlad Yasevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).