diff options
| author | Yunsheng Lin <[email protected]> | 2018-11-19 21:02:15 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-19 18:32:11 -0800 |
| commit | e432abfb99e5642a7e7fcaa1c8cb0e80c8fcf58e (patch) | |
| tree | 2442fdccf6556d4979071b27815df239ea147b62 /tools/perf/scripts/python/compaction-times.py | |
| parent | 43478201959da54d8e3058f9a017111749c6ace6 (diff) | |
net: hns3: add common validation in hclge_dcb
Before setting tm related configuration to hardware, driver
needs to check the configuration provided by user is valid.
Currently hclge_ieee_setets and hclge_setup_tc both implement
their own checking, which has a lot in common.
This patch addes hclge_dcb_common_validate to do the common
checking. The checking in hclge_tm_prio_tc_info_update
and hclge_tm_schd_info_update is unnecessary now, so change
the return type to void, which removes the need to do error
handling when one of the checking fails.
Also, ets->prio_tc is indexed by user prio and ets->tc_tsa is
indexed by tc num, so this patch changes them to use different
index.
Signed-off-by: Yunsheng Lin <[email protected]>
Signed-off-by: Tan Xiaojun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions