|
@@ -28,6 +28,7 @@ static size_t bond_get_slave_size(const struct net_device *bond_dev,
|
|
nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */
|
|
nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */
|
|
nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */
|
|
nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */
|
|
nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */
|
|
nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */
|
|
|
|
+ nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE */
|
|
0;
|
|
0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -56,12 +57,19 @@ static int bond_fill_slave_info(struct sk_buff *skb,
|
|
|
|
|
|
if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
|
|
if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
|
|
const struct aggregator *agg;
|
|
const struct aggregator *agg;
|
|
|
|
+ const struct port *ad_port;
|
|
|
|
|
|
|
|
+ ad_port = &SLAVE_AD_INFO(slave)->port;
|
|
agg = SLAVE_AD_INFO(slave)->port.aggregator;
|
|
agg = SLAVE_AD_INFO(slave)->port.aggregator;
|
|
- if (agg)
|
|
|
|
|
|
+ if (agg) {
|
|
if (nla_put_u16(skb, IFLA_BOND_SLAVE_AD_AGGREGATOR_ID,
|
|
if (nla_put_u16(skb, IFLA_BOND_SLAVE_AD_AGGREGATOR_ID,
|
|
agg->aggregator_identifier))
|
|
agg->aggregator_identifier))
|
|
goto nla_put_failure;
|
|
goto nla_put_failure;
|
|
|
|
+ if (nla_put_u8(skb,
|
|
|
|
+ IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE,
|
|
|
|
+ ad_port->actor_oper_port_state))
|
|
|
|
+ goto nla_put_failure;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
return 0;
|
|
return 0;
|