diff options
author | Jian Shen <shenjian15@huawei.com> | 2018-03-10 11:29:31 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-11 22:53:32 -0400 |
commit | eefd00a5d70378feae66c073105c548075609482 (patch) | |
tree | e6221ef41520a8ba7ad49f5f1c5fa83710b268a4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | aa7a795eecca4cd02557d2fd3cbc128ecc1e93c9 (diff) |
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: 46a3df9f9718 ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions