net/iavf: fix RSS configuration on i40e VF
authorAlvin Zhang <alvinx.zhang@intel.com>
Sun, 25 Apr 2021 05:08:47 +0000 (13:08 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 25 Apr 2021 05:46:47 +0000 (07:46 +0200)
commit5a038d19962d5ad3380ea6a116ec3120962398ab
tree98786c5688f1f14c2fb71fe832a58b3f26eacc82
parentc5ed57d1ba3a9ed943f84a6bba72235970ee2fac
net/iavf: fix RSS configuration on i40e VF

The iavf does not support configuring RSS type on i40e VF,
because the i40e kernel driver does not support
VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF capability.

This patch adds support of RSS type configuration for i40e VF by
sending VIRTCHNL_OP_SET_RSS_HENA message to the PF after checking
that the PF does not support VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF
capability.

Fixes: c678299594a8 ("net/iavf: fix default RSS configuration")
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_ethdev.c
drivers/net/iavf/iavf_vchnl.c