net: hns3: add macros for mac speeds of firmware command
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 27 Aug 2021 09:28:17 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 10:20:21 +0000 (11:20 +0100)
commit4c116f85ecf8c147450602ed47ee25de60807f45
treebbd6efe7d477ff84ac096fd95ecf3a54b4c34d63
parentfe50893aa86eb9f1c6ccf2ceef274193b6313aad
net: hns3: add macros for mac speeds of firmware command

To improve code readability, replace digital numbers of mac speeds
defined by firmware command with macros.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c