Searched refs:bond_grp (Results 1 – 5 of 5) sorted by relevance
38 struct hns_roce_bond_group *bond_grp) in get_netdev_bond_slave_id() argument43 if (net_dev == bond_grp->bond_func_info[i].net_dev) in get_netdev_bond_slave_id()53 struct hns_roce_bond_group *bond_grp; in hns_roce_get_bond_grp() local61 bond_grp = die_info->bgrps[i]; in hns_roce_get_bond_grp()62 if (!bond_grp) in hns_roce_get_bond_grp()64 if (get_netdev_bond_slave_id(net_dev, bond_grp) >= 0) in hns_roce_get_bond_grp()65 return bond_grp; in hns_roce_get_bond_grp()66 if (bond_grp->upper_dev) { in hns_roce_get_bond_grp()68 if (bond_grp->upper_dev == upper_dev) { in hns_roce_get_bond_grp()70 return bond_grp; in hns_roce_get_bond_grp()[all …]
95 struct hns_roce_bond_group *bond_grp; in hns_roce_get_port_state() local104 bond_grp = hns_roce_get_bond_grp(net_dev, bus_num); in hns_roce_get_port_state()105 if (bond_grp) { in hns_roce_get_port_state()106 *state = ib_get_curr_port_state(bond_grp->upper_dev); in hns_roce_get_port_state()174 struct hns_roce_bond_group *bond_grp; in hns_roce_netdev_event() local184 bond_grp = hns_roce_get_bond_grp(get_hr_netdev(hr_dev, 0), in hns_roce_netdev_event()186 upper = bond_grp ? bond_grp->upper_dev : NULL; in hns_roce_netdev_event()679 struct hns_roce_bond_group *bond_grp) in hns_roce_unregister_bond_cleanup() argument688 bond_grp->bond_state = HNS_ROCE_BOND_NOT_BONDED; in hns_roce_unregister_bond_cleanup()690 net_dev = bond_grp->bond_func_info[i].net_dev; in hns_roce_unregister_bond_cleanup()[all …]
89 void hns_roce_cleanup_bond(struct hns_roce_bond_group *bond_grp);
1482 *hns_roce_bond_init_client(struct hns_roce_bond_group *bond_grp,1484 void hns_roce_bond_uninit_client(struct hns_roce_bond_group *bond_grp,1487 int hns_roce_cmd_bond(struct hns_roce_bond_group *bond_grp,
1635 int hns_roce_cmd_bond(struct hns_roce_bond_group *bond_grp, in hns_roce_cmd_bond() argument1646 slave_info->bond_id = cpu_to_le32(bond_grp->bond_id); in hns_roce_cmd_bond()1650 if (bond_grp->tx_type == NETDEV_LAG_TX_TYPE_ACTIVEBACKUP) { in hns_roce_cmd_bond()1652 if (bond_grp->active_slave_num != 1) in hns_roce_cmd_bond()1653 ibdev_warn(&bond_grp->main_hr_dev->ib_dev, in hns_roce_cmd_bond()1655 bond_grp->active_slave_num); in hns_roce_cmd_bond()1659 cpu_to_le32(get_bond_hashtype(bond_grp->hash_type)); in hns_roce_cmd_bond()1662 slave_info->active_slave_cnt = cpu_to_le32(bond_grp->active_slave_num); in hns_roce_cmd_bond()1663 slave_info->active_slave_mask = cpu_to_le32(bond_grp->active_slave_map); in hns_roce_cmd_bond()1664 slave_info->slave_mask = cpu_to_le32(bond_grp->slave_map); in hns_roce_cmd_bond()[all …]