Re: [PATCH v2] bonding: Inactive slaves should keep inactive flag's value

From: David Miller
Date: Tue Apr 01 2014 - 16:12:35 EST


From: Zheng Li <zheng.x.li@xxxxxxxxxx>
Date: Tue, 1 Apr 2014 16:02:07 +0800

> - if ((bond->params.mode == BOND_MODE_ACTIVEBACKUP)
> + if ((bond->params.mode == BOND_MODE_ACTIVEBACKUP || bond_is_lb(bond))

As has been suggested, please use USES_PRIMARY() for this entire
logical test.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/