Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2018-01-07 Thread Thomas Monjalon
19/12/2017 18:10, Matan Azrad: > There is time between the physical removal of the device until PMDs get > a RMV interrupt. At this time DPDK PMDs and applications still don't > know about the removal. > > Current removal detection is achieved only by registration to device RMV > event and the not

Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2017-12-20 Thread Matan Azrad
.@networkplumber.org] > > > > Sent: Tuesday, December 19, 2017 7:20 PM > > > > To: Matan Azrad > > > > Cc: Adrien Mazarguil ; Thomas > Monjalon > > > > ; Gaetan Rivet ; > > > > dev@dpdk.org > > > > Subject: R

Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2017-12-19 Thread Gaƫtan Rivet
PM > > > To: Matan Azrad > > > Cc: Adrien Mazarguil ; Thomas Monjalon > > > ; Gaetan Rivet ; > > > dev@dpdk.org > > > Subject: Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal > > > status > > > > > > On Tue,

Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2017-12-19 Thread Thomas Monjalon
n Rivet ; > > dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal > > status > > > > On Tue, 19 Dec 2017 17:10:10 + > > Matan Azrad wrote: > > > > > int >

Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2017-12-19 Thread Matan Azrad
HI > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Tuesday, December 19, 2017 7:20 PM > To: Matan Azrad > Cc: Adrien Mazarguil ; Thomas Monjalon > ; Gaetan Rivet ; > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1

Re: [dpdk-dev] [PATCH v3 1/6] ethdev: add devop to check removal status

2017-12-19 Thread Stephen Hemminger
On Tue, 19 Dec 2017 17:10:10 + Matan Azrad wrote: > int > +rte_eth_dev_is_removed(uint16_t port_id) > +{ > + struct rte_eth_dev *dev; > + int ret; > + > + RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, 0); > + > + dev = &rte_eth_devices[port_id]; > + > + RTE_FUNC_PTR_OR_ERR_RET