diff options
author | Xue Chaojing <xuechaojing@huawei.com> | 2018-11-20 05:47:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-20 10:38:08 -0800 |
commit | ebda9b46cebc9c1245fcfe96c76525717ef984cc (patch) | |
tree | a4bbf4093be1e158a79e4e9355085a13b5f28478 /drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h | |
parent | a421ce088ac8eb3591d2a1ae0ded2dcece72018f (diff) |
net-next/hinic:replace multiply and division operators
To improve performance, this patch uses bit operations to replace
multiply and division operators.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h index 9b66545ba563..0a936cd6709b 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_wq.h @@ -39,7 +39,8 @@ struct hinic_wq { u16 q_depth; u16 max_wqe_size; u16 num_wqebbs_per_page; - + u16 wqebbs_per_page_shift; + u16 wqebb_size_shift; /* The addresses are 64 bit in the HW */ u64 block_paddr; void **shadow_block_vaddr; |