Home
last modified time | relevance | path

Searched refs:new_tqp_num (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c3544 static int hns3_modify_tqp_num(struct net_device *netdev, u16 new_tqp_num, in hns3_modify_tqp_num() argument
3552 ret = h->ae_algo->ops->set_channels(h, new_tqp_num); in hns3_modify_tqp_num()
3585 static int hns3_adjust_tqps_num(u8 num_tc, u32 new_tqp_num) in hns3_adjust_tqps_num() argument
3587 return (new_tqp_num / num_tc) * num_tc; in hns3_adjust_tqps_num()
3598 u32 new_tqp_num = ch->combined_count; in hns3_set_channels() local
3605 if (new_tqp_num > hns3_get_max_available_channels(h) || in hns3_set_channels()
3606 new_tqp_num < kinfo->num_tc) { in hns3_set_channels()
3614 new_tqp_num = hns3_adjust_tqps_num(kinfo->num_tc, new_tqp_num); in hns3_set_channels()
3615 if (kinfo->num_tqps == new_tqp_num) in hns3_set_channels()
3644 ret = hns3_modify_tqp_num(netdev, new_tqp_num, &tx_coal, &rx_coal); in hns3_set_channels()