]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: refactor mii monitor
authorJay Vosburgh <fubar@us.ibm.com>
Thu, 3 Jul 2008 01:21:58 +0000 (18:21 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 7 Aug 2008 07:59:53 +0000 (03:59 -0400)
commit8c8e4b5064d42ecaae34f0aeeeba9cd087417d2c
treeb0e4af463171108e23c3701c05b1ca9c53e4c07b
parentb6aa2e02bad57335caf1a2b9ed4967b6c09554df
bonding: refactor mii monitor

Refactor mii monitor.  As with the previous ARP monitor refactor,
the motivation for this is to handle locking rationally (in this case,
removing conditional locking) and generally clean up the code.

This patch breaks up the monolithic mii monitor into two phases:
an inspection phase, followed by an optional commit phase.  The commit phase
is the only portion that requires RTNL or makes changes to state, and is
only called when inspection finds something to change.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_main.c