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)
commitf0c76d61779b153dbfb955db3f144c62d02173c2
treeb0e4af463171108e23c3701c05b1ca9c53e4c07b
parentc16d118537cadb21d186e35aebad90a13cd78846
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