Re: [dpdk-dev] [PATCH v4 3/9] bus: add helper to find bus for a particular device

2017-06-21 Thread Thomas Monjalon
21/06/2017 01:29, Gaetan Rivet: > +static int > +cmp_rte_device(const struct rte_device *dev, const void *_dev2) Better to rename dev into dev1. > +{ > + const struct rte_device *dev2 = _dev2; > + > + return !(dev == dev2); simpler: return dev1 != dev2 [...] > +static int > +bus_find_de

[dpdk-dev] [PATCH v4 3/9] bus: add helper to find bus for a particular device

2017-06-20 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck Signed-off-by: Gaetan Rivet --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/eal_common_bus.c | 24 lib/librte_eal/common/include/rte_bus.h | 5 + lib/librte_eal/linuxapp/