public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [question] bond_set_slave_inactive_flags
@ 2011-03-01  7:43 Jiri Pirko
  2011-03-02 21:41 ` Jay Vosburgh
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Pirko @ 2011-03-01  7:43 UTC (permalink / raw)
  To: fubar; +Cc: netdev

Jay,

Looking at function bond_set_slave_inactive_flags:

static inline void bond_set_slave_inactive_flags(struct slave *slave)
{
        struct bonding *bond = netdev_priv(slave->dev->master);
        if (!bond_is_lb(bond))
                slave->state = BOND_STATE_BACKUP;
        if (!bond->params.all_slaves_active)
                slave->dev->priv_flags |= IFF_SLAVE_INACTIVE;
        if (slave_do_arp_validate(bond, slave))
                slave->dev->priv_flags |= IFF_SLAVE_NEEDARP;
}

Why BOND_STATE_BACKUP is set only for non-lb bonds?
This was introduced by 8f903c708fcc2b579ebf16542bf6109bad593a1d but
I do not see why.

Thanks for reply in advance.

Jirka

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-02 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01  7:43 [question] bond_set_slave_inactive_flags Jiri Pirko
2011-03-02 21:41 ` Jay Vosburgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox