commit | 3fe13ed95dd3c4aede3313a2dd2d589c207b51d0 | [log] [tgz] |
---|---|---|
author | Yunsheng Lin <linyunsheng@huawei.com> | Sat Feb 23 17:22:09 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 24 20:27:50 2019 -0800 |
tree | 6bb9e7f4f133e2b47bfa76ac67a08a0095a5b9b7 | |
parent | 2a73ac3e6c9d7cd80af731bcb699c180d95c8166 [diff] |
net: hns3: avoid mult + div op in critical data path This patch uses shift offset to avoid doing mult and div operation. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>