Re: [dpdk-dev] [PATCH v9 01/12] eal/bus: introduce bus abstraction

2017-01-18 Thread Shreyansh Jain
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Wednesday, January 18, 2017 4:16 PM > To: Shreyansh Jain > Cc: dev@dpdk.org > Subject: Re: [PATCH v9 01/12] eal/bus: introduce bus abstraction > > 2017-01-18 16:07, Shreyansh Jain: > > +void > > +rte_b

Re: [dpdk-dev] [PATCH v9 01/12] eal/bus: introduce bus abstraction

2017-01-18 Thread Thomas Monjalon
2017-01-18 16:07, Shreyansh Jain: > +void > +rte_bus_register(struct rte_bus *bus) > +{ > + RTE_VERIFY(bus); > + RTE_VERIFY(bus->name && strlen(bus->name)); > + > + TAILQ_INSERT_TAIL(&rte_bus_list, bus, next); > + RTE_LOG(DEBUG, EAL, "Registered [%s] bus.\n", bus->name); > +} > + >

[dpdk-dev] [PATCH v9 01/12] eal/bus: introduce bus abstraction

2017-01-18 Thread Shreyansh Jain
This patch introduces the rte_bus abstraction for EAL. The model is: - One or more buses are connected to a CPU (or core) - One or more devices are conneted to a Bus - Drivers are running instances which manage one or more devices - Bus is responsible for identifying devices (and interrupt prop