• Narender Kumar's avatar
    netxen : fix BOND_MODE_TLB/ALB mode. · 5d09e534
    Narender Kumar authored
    o Along with netdev->perm_addr, mac address will be
      maintained in device private structure.
    
    o Device limitation: We need to set mac address when ever
      interface comes up.
    
    In ALB/TAL mode, bonding driver calls set_mac for all slave with bond mac address.
    But bonding driver set netdev->dev_addr field to its original value,
    after enslaving interfaces.
    
    When ever active slave changes, it swap dev_addr of inactive slave with active.
    Yet it doesn't notify driver about change in netdev->dev_addr.
    
    As netxen driver need to set mac addr when ever interface comes up,
    it can't rely on netdev->dev_addr field. Specially in case of bonding mode ALB/TLB.
    Signed-off-by: default avatarNarender Kumar <narender.kumar@qlogic.com>
    Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5d09e534
netxen_nic_main.c 59.7 KB