Skip to content

Commit

Permalink
net/i40e: announce request queue capability in PF
Browse files Browse the repository at this point in the history
[ upstream commit 918e90b ]

A new feature requesting additional queues from PF is added in iavf;
before sending VIRTCHNL_OP_REQUEST_QUEUES op code, the offload
capability flag VIRTCHNL_VF_OFFLOAD_REQ_QUEUES will be checked.

And due to DPDK PF is still used by some cases, add this offload
capability flag in i40e PF.

Fixes: cbdbd36 ("net/i40e: support AVF basic interface")

Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
  • Loading branch information
RobinXZhang authored and cpaelzer committed May 11, 2021
1 parent c1d0fd9 commit ce3e954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/i40e/i40e_pf.c
Expand Up @@ -333,6 +333,10 @@ i40e_pf_host_process_cmd_get_vf_resource(struct i40e_pf_vf *vf, uint8_t *msg,

vf_res->vf_cap_flags = vf->request_caps &
I40E_VIRTCHNL_OFFLOAD_CAPS;

if (vf->request_caps & VIRTCHNL_VF_OFFLOAD_REQ_QUEUES)
vf_res->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_REQ_QUEUES;

/* For X722, it supports write back on ITR
* without binding queue to interrupt vector.
*/
Expand Down

0 comments on commit ce3e954

Please sign in to comment.