Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-25 Thread Alejandro Lucero
On Thu, Oct 25, 2018 at 10:29 AM Burakov, Anatoly wrote: > On 25-Oct-18 7:00 AM, Alejandro Lucero wrote: > > On Thu, Oct 25, 2018 at 6:30 AM Alejandro Lucero < > > alejandro.luc...@netronome.com> wrote: > > > >> > >> > >> On Thu, Oct 25, 2018 at 12:11 AM Thomas Monjalon > >> wrote: > >> > >>> Hi

Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-25 Thread Burakov, Anatoly
On 25-Oct-18 7:00 AM, Alejandro Lucero wrote: On Thu, Oct 25, 2018 at 6:30 AM Alejandro Lucero < alejandro.luc...@netronome.com> wrote: On Thu, Oct 25, 2018 at 12:11 AM Thomas Monjalon wrote: Hi, 19/10/2018 18:43, Alejandro Lucero: --- a/drivers/bus/pci/linux/pci.c +++ b/drivers/bus/pci/

Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-24 Thread Alejandro Lucero
On Thu, Oct 25, 2018 at 6:30 AM Alejandro Lucero < alejandro.luc...@netronome.com> wrote: > > > On Thu, Oct 25, 2018 at 12:11 AM Thomas Monjalon > wrote: > >> Hi, >> >> 19/10/2018 18:43, Alejandro Lucero: >> > --- a/drivers/bus/pci/linux/pci.c >> > +++ b/drivers/bus/pci/linux/pci.c >> > + cha

Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-24 Thread Alejandro Lucero
On Thu, Oct 25, 2018 at 12:11 AM Thomas Monjalon wrote: > Hi, > > 19/10/2018 18:43, Alejandro Lucero: > > --- a/drivers/bus/pci/linux/pci.c > > +++ b/drivers/bus/pci/linux/pci.c > > + char devname[RTE_DEV_NAME_MAX_LEN] = {0}; > > I think "" would be more appropriate than {0}. > > > cons

Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-24 Thread Thomas Monjalon
Hi, 19/10/2018 18:43, Alejandro Lucero: > --- a/drivers/bus/pci/linux/pci.c > +++ b/drivers/bus/pci/linux/pci.c > + char devname[RTE_DEV_NAME_MAX_LEN] = {0}; I think "" would be more appropriate than {0}. > const struct rte_intr_handle *intr_handle = &device->intr_handle; > > - s

Re: [dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-22 Thread Burakov, Anatoly
On 19-Oct-18 5:43 PM, Alejandro Lucero wrote: Invoking the right pci read/write functions is based on interrupt handler type. However, this is not configured for secondary processes precluding to use those functions. This patch fixes the issue using the driver name the device is bound to instead

[dpdk-dev] [PATCH] bus/pci: use device driver name instead of handler type

2018-10-19 Thread Alejandro Lucero
Invoking the right pci read/write functions is based on interrupt handler type. However, this is not configured for secondary processes precluding to use those functions. This patch fixes the issue using the driver name the device is bound to instead. Fixes: 632b2d1deeed ("eal: provide functions