Lines Matching refs:tb
25 static void print_slave_state(FILE *f, struct rtattr *tb) in print_slave_state() argument
27 unsigned int state = rta_getattr_u8(tb); in print_slave_state()
42 static void print_slave_mii_status(FILE *f, struct rtattr *tb) in print_slave_mii_status() argument
44 unsigned int status = rta_getattr_u8(tb); in print_slave_mii_status()
52 static void bond_slave_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in bond_slave_print_opt() argument
55 if (!tb) in bond_slave_print_opt()
58 if (tb[IFLA_BOND_SLAVE_STATE]) in bond_slave_print_opt()
59 print_slave_state(f, tb[IFLA_BOND_SLAVE_STATE]); in bond_slave_print_opt()
61 if (tb[IFLA_BOND_SLAVE_MII_STATUS]) in bond_slave_print_opt()
62 print_slave_mii_status(f, tb[IFLA_BOND_SLAVE_MII_STATUS]); in bond_slave_print_opt()
64 if (tb[IFLA_BOND_SLAVE_LINK_FAILURE_COUNT]) in bond_slave_print_opt()
66 rta_getattr_u32(tb[IFLA_BOND_SLAVE_LINK_FAILURE_COUNT])); in bond_slave_print_opt()
68 if (tb[IFLA_BOND_SLAVE_PERM_HWADDR]) in bond_slave_print_opt()
70 ll_addr_n2a(RTA_DATA(tb[IFLA_BOND_SLAVE_PERM_HWADDR]), in bond_slave_print_opt()
71 RTA_PAYLOAD(tb[IFLA_BOND_SLAVE_PERM_HWADDR]), in bond_slave_print_opt()
74 if (tb[IFLA_BOND_SLAVE_QUEUE_ID]) in bond_slave_print_opt()
76 rta_getattr_u16(tb[IFLA_BOND_SLAVE_QUEUE_ID])); in bond_slave_print_opt()
78 if (tb[IFLA_BOND_SLAVE_AD_AGGREGATOR_ID]) in bond_slave_print_opt()
80 rta_getattr_u16(tb[IFLA_BOND_SLAVE_AD_AGGREGATOR_ID])); in bond_slave_print_opt()
82 if (tb[IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE]) in bond_slave_print_opt()
84 rta_getattr_u8(tb[IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE])); in bond_slave_print_opt()
86 if (tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE]) in bond_slave_print_opt()
88 rta_getattr_u16(tb[IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE])); in bond_slave_print_opt()