[dpdk-dev] [PATCH v5 1/4] lib/librte_ether: support device reset

2016-06-16 Thread Thomas Monjalon
2016-06-15 11:03, Wenzhuo Lu: > +/** > + * Reset an Ethernet device. > + * > + * @param port_id > + * The port identifier of the Ethernet device. > + */ > +int > +rte_eth_dev_reset(uint8_t port_id); Please explain in the doxygen comment what means a reset. We must understand why and when an appl

[dpdk-dev] [PATCH v5 1/4] lib/librte_ether: support device reset

2016-06-16 Thread Bruce Richardson
On Wed, Jun 15, 2016 at 11:03:31AM +0800, Wenzhuo Lu wrote: > Add an API to reset the device. > It's for VF device in this scenario, kernel PF + DPDK VF. > When the PF port down->up, APP should call this API to > reset VF port. Most likely, APP should call it in its > management thread and guarante

[dpdk-dev] [PATCH v5 1/4] lib/librte_ether: support device reset

2016-06-15 Thread Wenzhuo Lu
Add an API to reset the device. It's for VF device in this scenario, kernel PF + DPDK VF. When the PF port down->up, APP should call this API to reset 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,