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>
This commit is contained in:
parent
03a91d7efb
commit
50937e495f
@ -1257,8 +1257,8 @@ iavf_config_promisc(struct iavf_adapter *adapter,
|
||||
PMD_DRV_LOG(ERR,
|
||||
"fail to execute command CONFIG_PROMISCUOUS_MODE");
|
||||
|
||||
if (err == IAVF_NOT_SUPPORTED)
|
||||
return -ENOTSUP;
|
||||
if (err == -ENOTSUP)
|
||||
return err;
|
||||
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user