[dpdk-dev] [PATCH v5 1/2] net/i40e: support VF request more queues
Ferruh Yigit
ferruh.yigit at intel.com
Mon Dec 17 15:31:22 CET 2018
On 12/17/2018 11:10 AM, Zhirun Yan wrote:
> Before this patch, VF gets a default number of queues from the PF.
> This patch enables VF to request a different number. When VF configures
> more queues, it will send VIRTCHNL_OP_REQUEST_QUEUES to PF to request
> more queues, if success, PF will reset the VF.
>
> User can run "port stop all", "port config port_id rxq/txq queue_num"
> and "port start all" to reconfigure queue number.
>
> Signed-off-by: Zhirun Yan <zhirun.yan at intel.com>
> Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
<...>
> @@ -359,6 +359,25 @@ i40evf_execute_vf_cmd(struct rte_eth_dev *dev, struct vf_cmd_info *args)
> } while (i++ < MAX_TRY_TIMES);
> _clear_cmd(vf);
> break;
> + case VIRTCHNL_OP_REQUEST_QUEUES:
> + /*ignore async reply, only wait for system message,*/
> + /*vf_reset = true if get VIRTCHNL_EVENT_RESET_IMPENDING,*/
> + /*if not, means request queues failed */
Don't need comment terminators for each line, can have block comment, would you
mind if I fix while merging?
More information about the dev
mailing list