> > > > > +static int > > > +i40evf_handle_vf_reset(struct rte_eth_dev *dev) { > > > + struct i40e_adapter *adapter = > > > + I40E_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private); > > > + > > > + if (!dev->data->dev_started) > > > + return 0; > > > + > > > + adapter->reset_number = 1; > > > + i40e_vf_reset_dev(dev); > > > > What happens if user called this function for PF ? > > This is an illegal operation, so I will may be add an check of whether it is > vf > port, if not , a return command to avoid illegal operation. >
VF driver is probed when it is the VF (by device id). So I don't think it Will be called when it is PF. Thanks Jingjing