bonding: make bonding support netpoll
authorWANG Cong <amwang@redhat.com>
Thu, 6 May 2010 07:48:51 +0000 (00:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 07:48:51 +0000 (00:48 -0700)
commitf6dc31a85cd46a959bdd987adad14c3b645e03c1
tree5e60aa95287daa0262e90f0db36e280dea163578
parentc06ee961d3c0e51009cbd0e123b61fbb97f37d0b
bonding: make bonding support netpoll

Based on Andy's work, but I modified a lot.

Similar to the patch for bridge, this patch does:

1) implement the 2 methods to support netpoll for bonding;

2) modify netpoll during forwarding packets via bonding;

3) disable netpoll support of bonding when a netpoll-unabled device
   is added to bonding;

4) enable netpoll support when all underlying devices support netpoll.

Cc: Andy Gospodarek <gospo@redhat.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c