]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove the shaper param magic number
authorPeng Li <lipeng321@huawei.com>
Tue, 9 Feb 2021 02:41:53 +0000 (10:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2021 23:34:07 +0000 (15:34 -0800)
commitaff19e8bbce5d48f7d45570556b2db95f1965e3a
tree0d6f5764ba812c92f0364f938e4a210c8ae6131b
parent89f204acde6d175c0e3b4b1bd15df681adcbd4dd
net: hns3: remove the shaper param magic number

To make the code more readable, this patch adds a definition for
the magic number 126 used for the default shaper param ir_b, and
rename macro DIVISOR_IR_B_126.

No functional change.

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c