diff options
author | Guangbin Huang <[email protected]> | 2022-09-16 10:38:01 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-09-21 14:32:21 -0700 |
commit | dfea275e06c26690b1ef27399fd84ce50372b85c (patch) | |
tree | 843897ef95fedb5164335b0e23227cedaa67da38 /tools/perf/scripts/python/stackcollapse.py | |
parent | 04b6ba143521f4485b7f2c36c655b262a79dae97 (diff) |
net: hns3: optimize converting dscp to priority process of hns3_nic_select_queue()
Currently, when function hns3_nic_select_queue() converts dscp to priority,
it calls an indirect callback ae_algo->ops->get_dscp_prio to get priority.
However as function hns3_nic_select_queue() is in fast path, the indirect
call may cause degradation of performance. For optimization, this patch
moves dscp_app_cnt and dscp_prio from struct hclge_tm_info to struct
hnae3_knic_private_info, so they can be used in both hclge and hns3 layers.
Signed-off-by: Guangbin Huang <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions