Files
linux/drivers
Jian Shen eefd00a5d7 net: hns3: fix return value error of hclge_get_mac_vlan_cmd_status()
Error code -EIO was used to indicate mutilple errors in function
hclge_get_mac_vlan_cmd_status().This patch fixes it by using
error code depending on the error type.

For no space error, return -ENOSPC.
For entry not found, return -ENOENT.
For command send fail, return -EIO.
For invalid op code, return -EINVAL.

Fixes: 46a3df9f97 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-11 22:53:32 -04:00
..
2018-03-01 08:41:27 -07:00
2018-03-02 10:44:44 +01:00
2018-01-02 14:46:35 +01:00
2018-02-20 11:34:54 +00:00
2017-12-18 16:47:27 +01:00
2018-01-30 12:25:59 +00:00
2018-03-09 13:10:05 -05:00
2017-12-19 10:56:53 +01:00
2018-01-22 16:45:26 +01:00
2018-01-09 16:15:20 +01:00