net: hns3: small changes for magic numbers
authorJian Shen <shenjian15@huawei.com>
Fri, 7 Jun 2019 02:03:09 +0000 (10:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 20:20:59 +0000 (13:20 -0700)
commite91e388ca737d45018425a92ce7035064b590bc6
tree7cd42886943d2b44a3ff9b0b371f195e43ec5202
parentb69c97373769eb3d0a2e0137d8f0f6df40becf04
net: hns3: small changes for magic numbers

In order to improve readability, this patch uses macros to
replace some magic numbers, and adds some comments for some
others.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
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_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h