Re: [dpdk-dev] [PATCH V17 4/4] app/testpmd: enable device hotplug monitoring

2018-04-02 Thread Guo, Jia
hi,jingjing On 4/2/2018 1:49 PM, Wu, Jingjing wrote: +static int +eth_dev_event_callback_register(portid_t port_id) +{ + int diag; + char *device_name; + + /* if port id equal -1, unregister all device event callbacks */ + if (port_id == (portid_t)HOT_PLUG_FOR_ALL_DEVICE

Re: [dpdk-dev] [PATCH V17 4/4] app/testpmd: enable device hotplug monitoring

2018-04-01 Thread Wu, Jingjing
> > +static int > +eth_dev_event_callback_register(portid_t port_id) > +{ > + int diag; > + char *device_name; > + > + /* if port id equal -1, unregister all device event callbacks */ > + if (port_id == (portid_t)HOT_PLUG_FOR_ALL_DEVICE) { > + device_name = NULL; > +

Re: [dpdk-dev] [PATCH V17 4/4] app/testpmd: enable device hotplug monitoring

2018-04-01 Thread Guo, Jia
On 3/30/2018 1:00 AM, Stephen Hemminger wrote: On Fri, 30 Mar 2018 00:00:05 +0800 Jeff Guo wrote: Use testpmd for example, to show an application how to use device event mechanism to monitor the hotplug event, involve both hot removal event and the hot insertion event. The process is that,

Re: [dpdk-dev] [PATCH V17 4/4] app/testpmd: enable device hotplug monitoring

2018-03-29 Thread Stephen Hemminger
On Fri, 30 Mar 2018 00:00:05 +0800 Jeff Guo wrote: > Use testpmd for example, to show an application how to use device event > mechanism to monitor the hotplug event, involve both hot removal event > and the hot insertion event. > > The process is that, testpmd first enable hotplug monitoring an

[dpdk-dev] [PATCH V17 4/4] app/testpmd: enable device hotplug monitoring

2018-03-29 Thread Jeff Guo
Use testpmd for example, to show an application how to use device event mechanism to monitor the hotplug event, involve both hot removal event and the hot insertion event. The process is that, testpmd first enable hotplug monitoring and register the user's callback, when device being hotplug inser