Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c4270 static int hclge_set_rss_tc_mode(struct hclge_dev *hdev, u16 *tc_valid, in hclge_set_rss_tc_mode() argument
4284 hnae3_set_bit(mode, HCLGE_RSS_TC_VALID_B, (tc_valid[i] & 0x1)); in hclge_set_rss_tc_mode()
4589 u16 tc_valid[HCLGE_MAX_TC_NUM]; in hclge_rss_init_hw() local
4621 tc_valid[i] = 0; in hclge_rss_init_hw()
4626 tc_valid[i] = 1; in hclge_rss_init_hw()
4631 return hclge_set_rss_tc_mode(hdev, tc_valid, tc_size, tc_offset); in hclge_rss_init_hw()
10640 u16 tc_valid[HCLGE_MAX_TC_NUM]; in hclge_set_channels() local
10658 tc_valid[i] = 0; in hclge_set_channels()
10663 tc_valid[i] = 1; in hclge_set_channels()
10667 ret = hclge_set_rss_tc_mode(hdev, tc_valid, tc_size, tc_offset); in hclge_set_channels()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c669 u16 tc_valid[HCLGEVF_MAX_TC_NUM]; in hclgevf_set_rss_tc_mode() local
682 tc_valid[i] = !!(hdev->hw_tc_map & BIT(i)); in hclgevf_set_rss_tc_mode()
690 (tc_valid[i] & 0x1)); in hclgevf_set_rss_tc_mode()