• Vlad Yasevich's avatar
    bonding: Send ALB learning packets using the right source · d0c21d43
    Vlad Yasevich authored
    ALB learning packets are currentlyalways sent using the slave mac
    address for all vlans configured on top of bond.   This is not always
    correct, as vlans may change their mac address.
    This patch introduced a concept of strict matching where the
    source of learning packets can either strictly match the address
    passed in, or it can determine a more correct address to use.
    
    There are 3 casese to consider:
      1) Switchover.  In this case, we have a new active slave and we need
         tell the switch about all addresses available on the slave.
      2) Monitor.  We'll periodically refresh learning info for all slaves.
         In this case, we refresh all addresses for current active, and just
         the slave address for other slaves.
      3) Teaching of disabled adddress.  This happens as part of the
         failover and in this case, we alwyas to use just the address
         provided.
    
    CC: Jay Vosburgh <j.vosburgh@gmail.com>
    CC: Veaceslav Falico <vfalico@gmail.com>
    CC: Andy Gospodarek <andy@greyhouse.net>
    Signed-off-by: default avatarVlad Yasevich <vyasevic@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d0c21d43
bond_alb.c 48.3 KB