Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets()
84 if (num_tc > hdev->tc_max) { in hclge_dcb_common_validate()
87 num_tc, hdev->tc_max); in hclge_dcb_common_validate()
H A Dhclge_tm.c692 kinfo->tc_info.max_tc = hdev->tc_max; in hclge_tm_update_kinfo_rss_size()
765 for (i = 0; i < hdev->tc_max; i++) { in hclge_tm_tc_info_init()
1053 for (i = 0; i < hdev->tc_max; i++) { in hclge_tm_pri_tc_base_shaper_cfg()
1191 for (i = 0; i < hdev->tc_max; i++) { in hclge_tm_pri_tc_base_dwrr_cfg()
1439 for (i = 0; i < hdev->tc_max; i++) { in hclge_tm_lvl34_schd_mode_cfg()
H A Dhclge_main.h892 u8 tc_max; member
H A Dhclge_main.c1463 if (hdev->tc_max > HNAE3_MAX_TC || in hclge_init_tc_config()
1464 hdev->tc_max < 1) { in hclge_init_tc_config()
1466 hdev->tc_max); in hclge_init_tc_config()
1467 hdev->tc_max = 1; in hclge_init_tc_config()
1472 hdev->tc_max = 1; in hclge_init_tc_config()
1475 hdev->pfc_max = hdev->tc_max; in hclge_init_tc_config()
1507 hdev->tc_max = cfg.tc_num; in hclge_configure()
7283 if (tc < 0 || tc > hdev->tc_max) { in hclge_check_cls_flower()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_nl.c21 static int ixgbe_copy_dcb_cfg(struct ixgbe_adapter *adapter, int tc_max) in ixgbe_copy_dcb_cfg() argument
42 for (i = DCB_PG_ATTR_TC_0; i < tc_max + DCB_PG_ATTR_TC_0; i++) { in ixgbe_copy_dcb_cfg()