net/iavf: fix handling of unsupported promiscuous
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 May 2021 09:53:05 +0000 (17:53 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 10 Jun 2021 10:04:16 +0000 (12:04 +0200)
commit50937e495f5bcc5985365b3b93e34b6efffeca10
tree34f3cb1c73576a8b3adce64b622703ae94d6f630
parent03a91d7efb7098ba739ba458bcc118c3e348fae1
net/iavf: fix handling of unsupported promiscuous

iavf_execute_vf_cmd returns standard error code but not IAVF_xxx,
The patch fix the wrong error handling in iavf_config_promisc.

Fixes: 1e4d55a7fe71 ("net/iavf: optimize promiscuous device operations")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf_vchnl.c