linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Weihang Li b671b723e0 net: hns3: add hclge_cmd_check_retval() to parse comman's return value
For simplifying the code, this patch adds hclge_cmd_check_retval() to
check the return value of the command.

Also, according the IMP's description, when there are several descriptors
in a command, then the IMP will save the return value on the last
description, so hclge_cmd_check_retval() just check the last one for this
case.

Signed-off-by: Weihang Li <liweihang@hisilicon.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>
2019-02-02 08:24:08 -08:00
..
hns3pf net: hns3: add hclge_cmd_check_retval() to parse comman's return value 2019-02-02 08:24:08 -08:00
hns3vf net: hns3: Modify parameter type from int to bool in set_gro_en 2019-02-02 08:24:08 -08:00
hclge_mbx.h net: hns3: Add "queue map" information query function 2018-12-15 10:54:18 -08:00
hnae3.c net: hns3: change hnae3_register_ae_dev() to int 2019-01-30 14:50:03 -08:00
hnae3.h net: hns3: Modify parameter type from int to bool in set_gro_en 2019-02-02 08:24:08 -08:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_debugfs.c net: hns3: Add "tm map" status information query function 2018-12-15 10:54:18 -08:00
hns3_enet.c net: hns3: Modify parameter type from int to bool in set_gro_en 2019-02-02 08:24:08 -08:00
hns3_enet.h net: hns3: reuse the definition of l3 and l4 header info union 2019-01-30 14:50:03 -08:00
hns3_ethtool.c net: hns3: use the correct interface to stop|open port 2019-01-30 14:50:03 -08:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00