10/04/2017 05:02, Wei Zhao: > Add support for port reset in rte layer.This reset > feature can be used not only in vf port reset in the following > code develop process later, but also pf port.But in this patch > set, we only limit the discussion scope to vf reset. > This patch add an API to restart the device. > It's for VF device in this scenario, kernel PF + DPDK VF. > When the PF port state is down->up, APP should call this API to > restart VF port. Most likely, APP should call it in its > management thread and guarantee the thread safe. It means > APP should stop the rx/tx and the device, then restart > the device, then recover the device and rx/tx.This API can > also do some restore work for the port. > > Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com> > Signed-off-by: Wei Zhao <wei.zh...@intel.com> > --- > lib/librte_ether/rte_ethdev.c | 17 +++++++++++++++++ > lib/librte_ether/rte_ethdev.h | 28 ++++++++++++++++++++++++++++ > lib/librte_ether/rte_ether_version.map | 6 ++++++ > 3 files changed, 51 insertions(+)
This new feature should be referenced in the matrix doc/guides/nics/features/default.ini