mbox series

[net,0/2] fix bonding interface bugs

Message ID 20200213192035.15942-1-ap420073@gmail.com
Headers show
Series fix bonding interface bugs | expand

Message

Taehee Yoo Feb. 13, 2020, 7:20 p.m. UTC
This patchset fixes two bugs in bonding module

1. The first patch adds missing dynamic lockdep class key update routine.
After bond_release(), netdev_update_lockdep_key() should be called.
But both ioctl path and attribute path don't call
netdev_update_lockdep_key().

2. The second patch changes bonding stats routine
In the current code, bonding interface collects stats of slave interfaces
when dev_get_stats() is called.
But, this has several problems.
1. Possible imbalance lock/unlocking.
2. Show incorrect stats info.
So, this patch changes bonding interface stats routine.
In addition, it fixes lockdep warning.

Taehee Yoo (2):
  bonding: add missing netdev_update_lockdep_key()
  bonding: do not collect slave's stats

 drivers/net/bonding/bond_alb.c     |  14 +-
 drivers/net/bonding/bond_main.c    | 222 +++++++++++++++--------------
 drivers/net/bonding/bond_options.c |   2 +
 include/net/bond_alb.h             |   4 +-
 include/net/bonding.h              |  17 ++-
 5 files changed, 142 insertions(+), 117 deletions(-)