summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLang Cheng <chenglang@huawei.com>2020-04-15 16:14:33 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-04-24 10:19:10 -0300
commit7c044adca272768d821921f11d3da4587dcec68a (patch)
treec6990568b2352b6bd48559b25bd43e605bf05030 /tools/perf/scripts/python/netdev-times.py
parenta3de9e83810ced41ad7dece44c03f2338e44129d (diff)
downloadlinux-7c044adca272768d821921f11d3da4587dcec68a.tar.gz
linux-7c044adca272768d821921f11d3da4587dcec68a.zip
RDMA/hns: Simplify the cqe code of poll cq
Encapsulate codes to get status of cqe into a function and use map table instead of switch-case to reduce cyclomatic complexity of hns_roce_v2_poll_one(). Link: https://lore.kernel.org/r/1586938475-37049-5-git-send-email-liweihang@huawei.com Signed-off-by: Lang Cheng <chenglang@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions