Skip to contentSkip to conversation

fix bonding interface bugs

PATCH Superseded Taehee Yoo 1 participant 1 message Feb 13, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

cover fix bonding interface bugs

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(-)
Signature · 1 line
2.17.1