]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add all IMP return code
authorPeng Li <lipeng321@huawei.com>
Thu, 4 Jul 2019 14:04:23 +0000 (22:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:39:38 +0000 (15:39 -0700)
commitd88a13a312dd606797bbd88d5305d29aec0ebe8b
tree024343bdca03339d81c115f211b2bc3613a98f43
parente2f8c3494a3cd7b12a9e4f34567cf651ed518906
net: hns3: add all IMP return code

Currently, the HNS3 driver just defines part of IMP return code,
This patch supplements all the remaining IMP return code, and adds
a function to convert this code to the error number.

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_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h