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....@intel.com>
> Signed-off-by: Haiyue Wang <haiyue.w...@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?

Reply via email to