]> 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)
commit00444b2e4fb127ae976c42bb96252852fee983d8
tree0d6f5764ba812c92f0364f938e4a210c8ae6131b
parent3757da0572bfb2991863fff0004cfcb2ac27f720
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