net/iavf: fix VF to PF command failure handling
authorAlvin Zhang <alvinx.zhang@intel.com>
Sun, 25 Apr 2021 07:39:34 +0000 (15:39 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 26 Apr 2021 04:44:45 +0000 (06:44 +0200)
commit0c35eecfe8b54bbdf59c30a803404acfdcc4f7eb
tree7f8ac0f550309b249a73c28d8a63cc6c7823fd91
parent91fba40ea9b9c3f0ff7f583fbe5627188a49b24e
net/iavf: fix VF to PF command failure handling

When the command sent by VF to PF fails, iavf may need to run
different code paths according to the specific reason of the
failure (not supported or other reasons).

This patch adds support of identifying PF return error type.

Fixes: 22b123a36d07 ("net/avf: initialize PMD")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_vchnl.c