diff options
Diffstat (limited to 'include/net/bonding.h')
| -rw-r--r-- | include/net/bonding.h | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/include/net/bonding.h b/include/net/bonding.h index b52235158836..808f1d167349 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -285,8 +285,15 @@ static inline bool bond_needs_speed_duplex(const struct bonding *bond)  static inline bool bond_is_nondyn_tlb(const struct bonding *bond)  { -	return (BOND_MODE(bond) == BOND_MODE_TLB)  && -	       (bond->params.tlb_dynamic_lb == 0); +	return (bond_is_lb(bond) && bond->params.tlb_dynamic_lb == 0); +} + +static inline bool bond_mode_can_use_xmit_hash(const struct bonding *bond) +{ +	return (BOND_MODE(bond) == BOND_MODE_8023AD || +		BOND_MODE(bond) == BOND_MODE_XOR || +		BOND_MODE(bond) == BOND_MODE_TLB || +		BOND_MODE(bond) == BOND_MODE_ALB);  }  static inline bool bond_mode_uses_xmit_hash(const struct bonding *bond)  | 
