|
@@ -1362,8 +1362,16 @@ static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg)
|
|
|
I40E_VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2;
|
|
|
}
|
|
|
|
|
|
- if (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING)
|
|
|
+ if (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING) {
|
|
|
+ if (pf->flags & I40E_FLAG_MFP_ENABLED) {
|
|
|
+ dev_err(&pf->pdev->dev,
|
|
|
+ "VF %d requested polling mode: this feature is supported only when the device is running in single function per port (SFP) mode\n",
|
|
|
+ vf->vf_id);
|
|
|
+ ret = I40E_ERR_PARAM;
|
|
|
+ goto err;
|
|
|
+ }
|
|
|
vfres->vf_offload_flags |= I40E_VIRTCHNL_VF_OFFLOAD_RX_POLLING;
|
|
|
+ }
|
|
|
|
|
|
if (pf->flags & I40E_FLAG_WB_ON_ITR_CAPABLE) {
|
|
|
if (vf->driver_caps & I40E_VIRTCHNL_VF_OFFLOAD_WB_ON_ITR)
|