diff options
author | Fuyun Liang <liangfuyun1@huawei.com> | 2018-01-12 03:23:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-12 10:12:32 -0500 |
commit | b81c59e1f70914b6958fd342608dbc5aa6b487e4 (patch) | |
tree | bdc8df09241c5055ff7e07ccbbef07daa81d399d | |
parent | 0c8b769b7c7790d5cd0bbb2986cf438fb3f6a0df (diff) |
net: hns3: change the unit of GL value macro
Previously, driver used 2us as the GL unit. The time unit ethtool
command "-c" and "-C" use is 1us, so now the GL unit driver uses
actually is 1us.
This patch changes the unit of GL value macro from
2us to 1us.
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 7adbda8846ae..213f501b30bb 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | |||
@@ -452,10 +452,10 @@ enum hns3_link_mode_bits { | |||
452 | }; | 452 | }; |
453 | 453 | ||
454 | #define HNS3_INT_GL_MAX 0x1FE0 | 454 | #define HNS3_INT_GL_MAX 0x1FE0 |
455 | #define HNS3_INT_GL_50K 0x000A | 455 | #define HNS3_INT_GL_50K 0x0014 |
456 | #define HNS3_INT_GL_20K 0x0019 | 456 | #define HNS3_INT_GL_20K 0x0032 |
457 | #define HNS3_INT_GL_18K 0x001B | 457 | #define HNS3_INT_GL_18K 0x0036 |
458 | #define HNS3_INT_GL_8K 0x003E | 458 | #define HNS3_INT_GL_8K 0x007C |
459 | 459 | ||
460 | #define HNS3_INT_RL_MAX 0x00EC | 460 | #define HNS3_INT_RL_MAX 0x00EC |
461 | #define HNS3_INT_RL_ENABLE_MASK 0x40 | 461 | #define HNS3_INT_RL_ENABLE_MASK 0x40 |