Lines Matching defs:mode
51 #define BOND_MODE(bond) ((bond)->params.mode)
119 int mode;
226 /* mode_lock is used for mode-specific locking needs, currently used by:
227 * 3ad mode (4) - protect against running bond_3ad_unbind_slave() and
230 * TLB mode (5) - to sync the use and modifications of its hash table
231 * ALB mode (6) - to sync the use and modifications of its hash table
333 static inline bool bond_mode_uses_arp(int mode)
335 return mode != BOND_MODE_8023AD && mode != BOND_MODE_TLB &&
336 mode != BOND_MODE_ALB;
339 static inline bool bond_mode_uses_primary(int mode)
341 return mode == BOND_MODE_ACTIVEBACKUP || mode == BOND_MODE_TLB ||
342 mode == BOND_MODE_ALB;
674 const char *bond_mode_name(int mode);