summaryrefslogtreecommitdiff
path: root/net/rds/info.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-04-04 11:17:53 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-04 20:20:39 +0300
commitceca4a5e3223dbb99c062990a64f7a8c32906674 (patch)
tree9c07f6e5302ae1977ffed5a2abfc10d11e43df2b /net/rds/info.c
parent0aa3d88a9197fd7176dbaf5db769837be6afdf46 (diff)
downloadlinux-ceca4a5e3223dbb99c062990a64f7a8c32906674.tar.xz
net: hns3: minor optimization for datapath
This patch adds a likely case for hns3_fill_desc and limits the local variables' scope as much as possible, also avoid div operation when the tqp_vector->num_tqps is one. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/info.c')
0 files changed, 0 insertions, 0 deletions