OSDN Git Service

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)
commit9d2a1cea6997ecd4f05833dfffb9907ffaa41bf5
tree0d6f5764ba812c92f0364f938e4a210c8ae6131b
parentae9e492a366433b97be414d2e90a2e24f8446abf
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