Re: [dpdk-dev] [PATCH 06/12] net/failsafe: add fail-safe PMD

2017-03-06 Thread Gaƫtan Rivet
On Fri, Mar 03, 2017 at 09:38:11AM -0800, Stephen Hemminger wrote: On Fri, 3 Mar 2017 16:40:28 +0100 Gaetan Rivet wrote: + +static struct rte_eth_dev * +pci_addr_to_eth_dev(struct rte_pci_addr *addr) +{ + uint8_t pid; + + if (addr == NULL) + return NULL; + for

Re: [dpdk-dev] [PATCH 06/12] net/failsafe: add fail-safe PMD

2017-03-03 Thread Stephen Hemminger
On Fri, 3 Mar 2017 16:40:28 +0100 Gaetan Rivet wrote: > + > +static struct rte_eth_dev * > +pci_addr_to_eth_dev(struct rte_pci_addr *addr) > +{ > + uint8_t pid; > + > + if (addr == NULL) > + return NULL; > + for (pid = 0; pid < RTE_MAX_ETHPORTS; pid++) { > + s

[dpdk-dev] [PATCH 06/12] net/failsafe: add fail-safe PMD

2017-03-03 Thread Gaetan Rivet
Introduce the fail-safe poll mode driver initialization and enable its build infrastructure. This PMD allows for applications to benefits from true hot-plugging support without having to implement it. It intercepts and manages Ethernet device removal events issued by slave PMDs and re-initializes