prepare function names for bus move
Subsystems (2)
cover prepare function names for bus move
It is planned to move the bus PCI and VDEV to /drivers/bus/ during 17.08. So the eal_ prefix will not make sense. Let's rename now before releasing 17.05 where EAL API has already some breaking changes.
Thomas Monjalon (2):
pci: remove eal prefix
vdev: remove eal prefix
app/test-pmd/testpmd.c | 2 +- doc/guides/cryptodevs/aesni_gcm.rst | 4 +- doc/guides/cryptodevs/aesni_mb.rst | 4 +- doc/guides/cryptodevs/kasumi.rst | 4 +- doc/guides/cryptodevs/null.rst | 4 +- doc/guides/cryptodevs/scheduler.rst | 4 +- doc/guides/cryptodevs/snow3g.rst | 4 +- doc/guides/cryptodevs/zuc.rst | 4 +- doc/guides/eventdevs/octeontx.rst | 4 +- doc/guides/eventdevs/sw.rst | 4 +- doc/guides/prog_guide/cryptodev_lib.rst | 4 +- .../sample_app_ug/l2_forward_real_virtual.rst | 4 +- doc/guides/sample_app_ug/link_status_intr.rst | 4 +- doc/guides/sample_app_ug/multi_process.rst | 2 +- doc/guides/sample_app_ug/netmap_compatibility.rst | 2 +- doc/guides/sample_app_ug/quota_watermark.rst | 4 +- drivers/net/bnx2x/bnx2x.h | 6 +- drivers/net/bonding/rte_eth_bond_api.c | 4 +- drivers/net/cxgbe/base/adapter.h | 10 +-- drivers/net/i40e/i40e_ethdev.c | 6 +- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/virtio/virtio_ethdev.c | 10 +-- drivers/net/virtio/virtio_pci.c | 81 ++++++++++------------ drivers/net/virtio/virtio_user_ethdev.c | 2 +- lib/librte_cryptodev/rte_cryptodev.c | 6 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 40 +++++------ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 38 +++++----- lib/librte_eal/common/eal_common_dev.c | 8 +-- lib/librte_eal/common/eal_common_pci.c | 42 +++++------ lib/librte_eal/common/eal_common_vdev.c | 8 +-- lib/librte_eal/common/eal_private.h | 8 +-- lib/librte_eal/common/include/rte_dev.h | 4 +- lib/librte_eal/common/include/rte_pci.h | 46 ++++++------ lib/librte_eal/common/include/rte_vdev.h | 6 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 38 +++++----- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 38 +++++----- lib/librte_eventdev/rte_eventdev.c | 4 +- test/test/test_cryptodev.c | 20 +++--- test/test/test_cryptodev_perf.c | 10 +-- test/test/test_eventdev.c | 2 +- test/test/test_eventdev_octeontx.c | 2 +- test/test/test_eventdev_sw.c | 2 +- test/test/test_link_bonding_rssconf.c | 2 +- 44 files changed, 250 insertions(+), 255 deletions(-)
Signature · 1 line
2.12.2
PATCH 1/2 pci: remove eal prefix
The PCI code will move to the bus drivers directory. Rename functions from rte_eal_pci_ to rte_pci_ to prepare the move of the driver out of EAL.
--- app/test-pmd/testpmd.c | 2 +- .../sample_app_ug/l2_forward_real_virtual.rst | 4 +- doc/guides/sample_app_ug/link_status_intr.rst | 4 +- doc/guides/sample_app_ug/multi_process.rst | 2 +- doc/guides/sample_app_ug/netmap_compatibility.rst | 2 +- doc/guides/sample_app_ug/quota_watermark.rst | 4 +- drivers/net/bnx2x/bnx2x.h | 6 +- drivers/net/cxgbe/base/adapter.h | 10 +-- drivers/net/i40e/i40e_ethdev.c | 6 +- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/virtio/virtio_ethdev.c | 10 +-- drivers/net/virtio/virtio_pci.c | 81 ++++++++++------------ drivers/net/virtio/virtio_user_ethdev.c | 2 +- lib/librte_cryptodev/rte_cryptodev.c | 4 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 40 +++++------ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 30 ++++---- lib/librte_eal/common/eal_common_dev.c | 4 +- lib/librte_eal/common/eal_common_pci.c | 42 +++++------ lib/librte_eal/common/eal_private.h | 8 +-- lib/librte_eal/common/include/rte_pci.h | 46 ++++++------ lib/librte_eal/linuxapp/eal/eal_pci.c | 38 +++++----- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 30 ++++---- lib/librte_eventdev/rte_eventdev.c | 4 +- 24 files changed, 189 insertions(+), 194 deletions(-)
app/test-pmd/testpmd.c +1 -1
@@ -1779,7 +1779,7 @@ rmv_event_callback(void *arg)if (da->type ==RTE_DEVTYPE_VIRTUAL )snprintf (name,sizeof (name),"%s" , da->virt.drv_name);else if (da->type ==RTE_DEVTYPE_WHITELISTED_PCI ) -rte_eal_pci_device_name (&da->pci.addr, name,sizeof (name)); +rte_pci_device_name (&da->pci.addr, name,sizeof (name));printf ("removing device %s\n" , name);rte_eal_dev_detach (name); dev->state =RTE_ETH_DEV_UNUSED ;
doc/guides/sample_app_ug/l2_forward_real_virtual.rst +2 -2
@@ -238,7 +238,7 @@ in the *DPDK Programmer's Guide* - Rel 1.4 EAR and the *DPDK API Reference*. .. code-block:: c - if (rte_eal_pci_probe() < 0) + if (rte_pci_probe() < 0) rte_exit(EXIT_FAILURE, "Cannot probe PCI\n"); nb_ports = rte_eth_dev_count();
@@ -279,7 +279,7 @@ Observe that: * rte_igb_pmd_init_all() simultaneously registers the driver as a PCI driver and as an Ethernet* Poll Mode Driver. -* rte_eal_pci_probe() parses the devices on the PCI bus and initializes recognized devices. +* rte_pci_probe() parses the devices on the PCI bus and initializes recognized devices. The next step is to configure the RX and TX queues. For each port, there is only one RX queue (only one lcore is able to poll a given port).
doc/guides/sample_app_ug/link_status_intr.rst +2 -2
@@ -138,7 +138,7 @@ To fully understand this code, it is recommended to study the chapters that rela .. code-block:: c - if (rte_eal_pci_probe() < 0) + if (rte_pci_probe() < 0) rte_exit(EXIT_FAILURE, "Cannot probe PCI\n"); nb_ports = rte_eth_dev_count();
@@ -171,7 +171,7 @@ To fully understand this code, it is recommended to study the chapters that rela Observe that: -* rte_eal_pci_probe() parses the devices on the PCI bus and initializes recognized devices. +* rte_pci_probe() parses the devices on the PCI bus and initializes recognized devices. The next step is to configure the RX and TX queues. For each port, there is only one RX queue (only one lcore is able to poll a given port).
doc/guides/sample_app_ug/multi_process.rst +1 -1
@@ -254,7 +254,7 @@ How the Application Works ^^^^^^^^^^^^^^^^^^^^^^^^^ The initialization calls in both the primary and secondary instances are the same for the most part, -calling the rte_eal_init(), 1 G and 10 G driver initialization and then rte_eal_pci_probe() functions. +calling the rte_eal_init(), 1 G and 10 G driver initialization and then rte_pci_probe() functions. Thereafter, the initialization done depends on whether the process is configured as a primary or secondary instance. In the primary instance, a memory pool is created for the packet mbufs and the network ports to be used are initialized -
doc/guides/sample_app_ug/netmap_compatibility.rst +1 -1
@@ -104,7 +104,7 @@ Porting Netmap applications typically involves two major steps: Since the ``compat_netmap`` functions have the same signature as the usual libc calls, the change is trivial in most cases. -The usual DPDK initialization code involving ``rte_eal_init()`` and ``rte_eal_pci_probe()`` +The usual DPDK initialization code involving ``rte_eal_init()`` and ``rte_pci_probe()`` has to be added to the Netmap application in the same way it is used in all other DPDK sample applications. Please refer to the *DPDK Programmer's Guide* and example source code for details about initialization.
doc/guides/sample_app_ug/quota_watermark.rst +2 -2
@@ -204,9 +204,9 @@ Then, a call to init_dpdk(), defined in init.c, is made to initialize the poll m /* Bind the drivers to usable devices */ - ret = rte_eal_pci_probe(); + ret = rte_pci_probe(); if (ret < 0) - rte_exit(EXIT_FAILURE, "rte_eal_pci_probe(): error %d\n", ret); + rte_exit(EXIT_FAILURE, "rte_pci_probe(): error %d\n", ret); if (rte_eth_dev_count() < 2) rte_exit(EXIT_FAILURE, "Not enough Ethernet port available\n");
drivers/net/bnx2x/bnx2x.h +3 -3
@@ -1977,7 +1977,7 @@ bnx2x_set_rx_mode(struct bnx2x_softc *sc)static inline int pci_read (struct bnx2x_softc *sc,size_t addr,void *val,uint8_t size) { -if (rte_eal_pci_read_config (sc->pci_dev, val, size, addr) <=0 ) { +if (rte_pci_read_config (sc->pci_dev, val, size, addr) <=0 ) {PMD_DRV_LOG (ERR ,"Can't read from PCI config space" );return ENXIO ; }
@@ -1989,7 +1989,7 @@ static inline int pci_write_word(struct bnx2x_softc *sc, size_t addr, off_t val) {uint16_t val16 = val; -if (rte_eal_pci_write_config (sc->pci_dev, &val16, +if (rte_pci_write_config (sc->pci_dev, &val16,sizeof (val16), addr) <=0 ) {PMD_DRV_LOG (ERR ,"Can't write to PCI config space" );return ENXIO ;
@@ -2001,7 +2001,7 @@ static inline int pci_write_word(struct bnx2x_softc *sc, size_t addr, off_t val)static inline int pci_write_long (struct bnx2x_softc *sc,size_t addr,off_t val) {uint32_t val32 = val; -if (rte_eal_pci_write_config (sc->pci_dev, &val32, +if (rte_pci_write_config (sc->pci_dev, &val32,sizeof (val32), addr) <=0 ) {PMD_DRV_LOG (ERR ,"Can't write to PCI config space" );return ENXIO ;
drivers/net/cxgbe/base/adapter.h +5 -5
@@ -478,7 +478,7 @@ static inline void t4_os_pci_write_cfg4(struct adapter *adapter, size_t addr, {u32 val32 = val; -if (rte_eal_pci_write_config (adapter->pdev, &val32,sizeof (val32), +if (rte_pci_write_config (adapter->pdev, &val32,sizeof (val32), addr) <0 )dev_err (adapter,"Can't write to PCI config space\n" ); }
@@ -494,7 +494,7 @@ static inline void t4_os_pci_write_cfg4(struct adapter *adapter, size_t addr,static inline void t4_os_pci_read_cfg4 (struct adapter *adapter,size_t addr,u32 *val) { -if (rte_eal_pci_read_config (adapter->pdev, val,sizeof (*val), +if (rte_pci_read_config (adapter->pdev, val,sizeof (*val), addr) <0 )dev_err (adapter,"Can't read from PCI config space\n" ); }
@@ -512,7 +512,7 @@ static inline void t4_os_pci_write_cfg2(struct adapter *adapter, size_t addr, {u16 val16 = val; -if (rte_eal_pci_write_config (adapter->pdev, &val16,sizeof (val16), +if (rte_pci_write_config (adapter->pdev, &val16,sizeof (val16), addr) <0 )dev_err (adapter,"Can't write to PCI config space\n" ); }
@@ -528,7 +528,7 @@ static inline void t4_os_pci_write_cfg2(struct adapter *adapter, size_t addr,static inline void t4_os_pci_read_cfg2 (struct adapter *adapter,size_t addr,u16 *val) { -if (rte_eal_pci_read_config (adapter->pdev, val,sizeof (*val), +if (rte_pci_read_config (adapter->pdev, val,sizeof (*val), addr) <0 )dev_err (adapter,"Can't read from PCI config space\n" ); }
@@ -544,7 +544,7 @@ static inline void t4_os_pci_read_cfg2(struct adapter *adapter, size_t addr,static inline void t4_os_pci_read_cfg (struct adapter *adapter,size_t addr,u8 *val) { -if (rte_eal_pci_read_config (adapter->pdev, val,sizeof (*val), +if (rte_pci_read_config (adapter->pdev, val,sizeof (*val), addr) <0 )dev_err (adapter,"Can't read from PCI config space\n" ); }
drivers/net/i40e/i40e_ethdev.c +3 -3
@@ -8991,7 +8991,7 @@ i40e_enable_extended_tag(struct rte_eth_dev *dev)uint32_t buf =0 ;int ret; - ret =rte_eal_pci_read_config (pci_dev, &buf,sizeof (buf), + ret =rte_pci_read_config (pci_dev, &buf,sizeof (buf),PCI_DEV_CAP_REG );if (ret <0 ) { PMD_DRV_LOG(ERR, "Failed to read PCI offset 0x%x",
@@ -9004,7 +9004,7 @@ i40e_enable_extended_tag(struct rte_eth_dev *dev) } buf =0 ; - ret =rte_eal_pci_read_config (pci_dev, &buf,sizeof (buf), + ret =rte_pci_read_config (pci_dev, &buf,sizeof (buf),PCI_DEV_CTRL_REG );if (ret <0 ) { PMD_DRV_LOG(ERR, "Failed to read PCI offset 0x%x",
@@ -9016,7 +9016,7 @@ i40e_enable_extended_tag(struct rte_eth_dev *dev)return ; } buf |=PCI_DEV_CTRL_EXT_TAG_MASK ; - ret =rte_eal_pci_write_config (pci_dev, &buf,sizeof (buf), + ret =rte_pci_write_config (pci_dev, &buf,sizeof (buf),PCI_DEV_CTRL_REG );if (ret <0 ) { PMD_DRV_LOG(ERR, "Failed to write PCI offset 0x%x",
drivers/net/mlx4/mlx4.c +1 -1
@@ -6086,7 +6086,7 @@ rte_mlx4_pmd_init(void)*/ setenv ("RDMAV_HUGEPAGES_SAFE" ,"1" ,1 );ibv_fork_init (); -rte_eal_pci_register (&mlx4_driver); +rte_pci_register (&mlx4_driver); }RTE_PMD_EXPORT_NAME (net_mlx4, __COUNTER__);
drivers/net/mlx5/mlx5.c +1 -1
@@ -892,7 +892,7 @@ rte_mlx5_pmd_init(void)*/ setenv ("RDMAV_HUGEPAGES_SAFE" ,"1" ,1 );ibv_fork_init (); -rte_eal_pci_register (&mlx5_driver); +rte_pci_register (&mlx5_driver); }RTE_PMD_EXPORT_NAME (net_mlx5, __COUNTER__);
drivers/net/virtio/virtio_ethdev.c +5 -5
@@ -1484,7 +1484,7 @@ virtio_remap_pci(struct rte_pci_device *pci_dev, struct virtio_hw *hw)if (hw->modern) {/* * We don't have to re-parse the PCI config space, since -* rte_eal_pci_map_device() makes sure the mapped address +* rte_pci_map_device() makes sure the mapped address * in secondary process would equal to the one mapped in * the primary process: error will be returned if that * requirement is not met.
@@ -1493,12 +1493,12 @@ virtio_remap_pci(struct rte_pci_device *pci_dev, struct virtio_hw *hw)* (such as dev_cfg, common_cfg, etc.) parsed from the * primary process, which is stored in shared memory. */ -if (rte_eal_pci_map_device (pci_dev)) { +if (rte_pci_map_device (pci_dev)) {PMD_INIT_LOG (DEBUG ,"failed to map pci device!" );return -1 ; } }else { -if (rte_eal_pci_ioport_map (pci_dev,0 ,VTPCI_IO (hw)) <0 ) +if (rte_pci_ioport_map (pci_dev,0 ,VTPCI_IO (hw)) <0 )return -1 ; }
@@ -1608,7 +1608,7 @@ eth_virtio_dev_uninit(struct rte_eth_dev *eth_dev) virtio_interrupt_handler, eth_dev);if (eth_dev->device) -rte_eal_pci_unmap_device (RTE_DEV_TO_PCI (eth_dev->device)); +rte_pci_unmap_device (RTE_DEV_TO_PCI (eth_dev->device));PMD_INIT_LOG (DEBUG ,"dev_uninit completed" );
@@ -1646,7 +1646,7 @@ rte_virtio_pmd_init(void)return ; } -rte_eal_pci_register (&rte_virtio_pmd); +rte_pci_register (&rte_virtio_pmd); }/*
drivers/net/virtio/virtio_pci.c +38 -43
214 lines not on this page · raw message
drivers/net/virtio/virtio_user_ethdev.c +1 -1
@@ -510,7 +510,7 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev) goto end; } -/* previously called by rte_eal_pci_probe() for physical dev */ +/* previously called by rte_pci_probe() for physical dev */ if (eth_virtio_dev_init (eth_dev) <0 ) {PMD_INIT_LOG (ERR ,"eth_virtio_dev_init fails" );virtio_user_eth_dev_free (eth_dev);
lib/librte_cryptodev/rte_cryptodev.c +2 -2
@@ -716,7 +716,7 @@ rte_cryptodev_pci_probe(struct rte_pci_driver *pci_drv,if (cryptodrv ==NULL )return -ENODEV ; -rte_eal_pci_device_name (&pci_dev->addr, cryptodev_name, +rte_pci_device_name (&pci_dev->addr, cryptodev_name,sizeof (cryptodev_name)); cryptodev =rte_cryptodev_pmd_allocate (cryptodev_name,rte_socket_id ());
@@ -772,7 +772,7 @@ rte_cryptodev_pci_remove(struct rte_pci_device *pci_dev)if (pci_dev ==NULL )return -EINVAL ; -rte_eal_pci_device_name (&pci_dev->addr, cryptodev_name, +rte_pci_device_name (&pci_dev->addr, cryptodev_name,sizeof (cryptodev_name)); cryptodev =rte_cryptodev_pmd_get_named_dev (cryptodev_name);
lib/librte_eal/bsdapp/eal/eal_pci.c +20 -20
@@ -91,7 +91,7 @@ extern struct rte_pci_bus rte_pci_bus;/* Map pci device */ int -rte_eal_pci_map_device (struct rte_pci_device *dev) +rte_pci_map_device (struct rte_pci_device *dev) {int ret =-1 ;
@@ -113,7 +113,7 @@ rte_eal_pci_map_device(struct rte_pci_device *dev)/* Unmap pci device */ void -rte_eal_pci_unmap_device (struct rte_pci_device *dev) +rte_pci_unmap_device (struct rte_pci_device *dev) {/* try unmapping the NIC resources */ switch (dev->kdrv) {
@@ -282,7 +282,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf)/* FreeBSD has no NUMA support (yet) */ dev->device.numa_node =0 ; -rte_eal_pci_device_name (&dev->addr, dev->name,sizeof (dev->name)); +rte_pci_device_name (&dev->addr, dev->name,sizeof (dev->name)); dev->device.name = dev->name;/* FreeBSD has only one pass through driver */
@@ -319,7 +319,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf)/* device is valid, add in list (sorted) */ if (TAILQ_EMPTY (&rte_pci_bus.device_list)) { -rte_eal_pci_add_device (dev); +rte_pci_add_device (dev); }else {struct rte_pci_device *dev2 =NULL ;
@@ -330,7 +330,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf)if (ret >0 )continue ;else if (ret <0 ) { -rte_eal_pci_insert_device (dev2, dev); +rte_pci_insert_device (dev2, dev); }else {/* already registered */ dev2->kdrv = dev->kdrv; dev2->max_vfs = dev->max_vfs;
@@ -341,7 +341,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf) }return 0 ; } -rte_eal_pci_add_device (dev); +rte_pci_add_device (dev); }return 0 ;
@@ -356,7 +356,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf)* list. Call pci_scan_one() for each pci entry found. */ int -rte_eal_pci_scan (void ) +rte_pci_scan (void ) {int fd;unsigned dev_count =0 ;
@@ -455,8 +455,8 @@ pci_update_device(const struct rte_pci_addr *addr) }/* Read PCI config space. */ -int rte_eal_pci_read_config (const struct rte_pci_device *dev, -void *buf,size_t len,off_t offset) +int rte_pci_read_config (const struct rte_pci_device *dev, +void *buf,size_t len,off_t offset) {int fd =-1 ;struct pci_io pi = {
@@ -495,8 +495,8 @@ int rte_eal_pci_read_config(const struct rte_pci_device *dev, }/* Write PCI config space. */ -int rte_eal_pci_write_config (const struct rte_pci_device *dev, -const void *buf,size_t len,off_t offset) +int rte_pci_write_config (const struct rte_pci_device *dev, +const void *buf,size_t len,off_t offset) {int fd =-1 ;
@@ -538,8 +538,8 @@ int rte_eal_pci_write_config(const struct rte_pci_device *dev, }int -rte_eal_pci_ioport_map (struct rte_pci_device *dev,int bar, -struct rte_pci_ioport *p) +rte_pci_ioport_map (struct rte_pci_device *dev,int bar, +struct rte_pci_ioport *p) {int ret;
@@ -566,7 +566,7 @@ rte_eal_pci_ioport_map(struct rte_pci_device *dev, int bar,static void pci_uio_ioport_read (struct rte_pci_ioport *p, -void *data,size_t len,off_t offset) +void *data,size_t len,off_t offset) {#if defined(RTE_ARCH_X86 )uint8_t *d;
@@ -594,8 +594,8 @@ pci_uio_ioport_read(struct rte_pci_ioport *p, }void -rte_eal_pci_ioport_read (struct rte_pci_ioport *p, -void *data,size_t len,off_t offset) +rte_pci_ioport_read (struct rte_pci_ioport *p, +void *data,size_t len,off_t offset) {switch (p->dev->kdrv) {case RTE_KDRV_NIC_UIO :
@@ -608,7 +608,7 @@ rte_eal_pci_ioport_read(struct rte_pci_ioport *p,static void pci_uio_ioport_write (struct rte_pci_ioport *p, -const void *data,size_t len,off_t offset) +const void *data,size_t len,off_t offset) {#if defined(RTE_ARCH_X86 )const uint8_t *s;
@@ -636,8 +636,8 @@ pci_uio_ioport_write(struct rte_pci_ioport *p, }void -rte_eal_pci_ioport_write (struct rte_pci_ioport *p, -const void *data,size_t len,off_t offset) +rte_pci_ioport_write (struct rte_pci_ioport *p, +const void *data,size_t len,off_t offset) {switch (p->dev->kdrv) {case RTE_KDRV_NIC_UIO :
@@ -649,7 +649,7 @@ rte_eal_pci_ioport_write(struct rte_pci_ioport *p, }int -rte_eal_pci_ioport_unmap (struct rte_pci_ioport *p) +rte_pci_ioport_unmap (struct rte_pci_ioport *p) {int ret;
lib/librte_eal/bsdapp/eal/rte_eal_version.map +15 -15
@@ -35,12 +35,6 @@ DPDK_2.0 { rte_eal_mp_remote_launch; rte_eal_mp_wait_lcore; rte_eal_parse_devargs_str; - rte_eal_pci_dump; - rte_eal_pci_probe; - rte_eal_pci_probe_one; - rte_eal_pci_register; - rte_eal_pci_scan; - rte_eal_pci_unregister; rte_eal_process_type; rte_eal_remote_launch; rte_eal_tailq_lookup;
@@ -106,9 +100,6 @@ DPDK_2.0 { DPDK_2.1 { global: - rte_eal_pci_detach; - rte_eal_pci_read_config; - rte_eal_pci_write_config; rte_intr_allow_others; rte_intr_dp_is_en; rte_intr_efd_disable;
@@ -134,12 +125,6 @@ DPDK_16.04 { global: rte_cpu_get_flag_name; - rte_eal_pci_ioport_map; - rte_eal_pci_ioport_read; - rte_eal_pci_ioport_unmap; - rte_eal_pci_ioport_write; - rte_eal_pci_map_device; - rte_eal_pci_unmap_device; rte_eal_primary_proc_alive; } DPDK_2.2;
@@ -188,6 +173,21 @@ DPDK_17.05 { rte_log_set_global_level; rte_log_set_level; rte_log_set_level_regexp; + rte_pci_detach; + rte_pci_dump; + rte_pci_ioport_map; + rte_pci_ioport_read; + rte_pci_ioport_unmap; + rte_pci_ioport_write; + rte_pci_map_device; + rte_pci_probe; + rte_pci_probe_one; + rte_pci_read_config; + rte_pci_register; + rte_pci_scan; + rte_pci_unmap_device; + rte_pci_unregister; + rte_pci_write_config; vfio_get_container_fd; vfio_get_group_fd; vfio_get_group_no;
lib/librte_eal/common/eal_common_dev.c +2 -2
@@ -55,7 +55,7 @@ int rte_eal_dev_attach(const char *name, const char *devargs) }if (eal_parse_pci_DomBDF (name, &addr) ==0 ) { -if (rte_eal_pci_probe_one (&addr) <0 ) +if (rte_pci_probe_one (&addr) <0 ) goto err; }else {
@@ -80,7 +80,7 @@ int rte_eal_dev_detach(const char *name) }if (eal_parse_pci_DomBDF (name, &addr) ==0 ) { -if (rte_eal_pci_detach (&addr) <0 ) +if (rte_pci_detach (&addr) <0 ) goto err; }else {if (rte_eal_vdev_uninit (name))
lib/librte_eal/common/eal_common_pci.c +21 -21
150 lines not on this page · raw message
lib/librte_eal/common/eal_private.h +4 -4
@@ -121,7 +121,7 @@ struct rte_pci_device;* PCI device to add * @return void */ -void rte_eal_pci_add_device (struct rte_pci_device *pci_dev); +void rte_pci_add_device (struct rte_pci_device *pci_dev);/** * Insert a PCI device in the PCI Bus at a particular location in the device
@@ -134,8 +134,8 @@ void rte_eal_pci_add_device(struct rte_pci_device *pci_dev);* PCI device to be added before exist_pci_dev * @return void */ -void rte_eal_pci_insert_device (struct rte_pci_device *exist_pci_dev, -struct rte_pci_device *new_pci_dev); +void rte_pci_insert_device (struct rte_pci_device *exist_pci_dev, +struct rte_pci_device *new_pci_dev);/** * Remove a PCI device from the PCI Bus. This sets to NULL the bus references
@@ -145,7 +145,7 @@ void rte_eal_pci_insert_device(struct rte_pci_device *exist_pci_dev,* PCI device to be removed from PCI Bus * @return void */ -void rte_eal_pci_remove_device (struct rte_pci_device *pci_device); +void rte_pci_remove_device (struct rte_pci_device *pci_device);/** * Update a pci device object by asking the kernel for the latest information.
lib/librte_eal/common/include/rte_pci.h +23 -23
148 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/eal_pci.c +19 -19
@@ -88,7 +88,7 @@ pci_get_kernel_driver_by_path(const char *filename, char *dri_name)/* Map pci device */ int -rte_eal_pci_map_device (struct rte_pci_device *dev) +rte_pci_map_device (struct rte_pci_device *dev) {int ret =-1 ;
@@ -119,7 +119,7 @@ rte_eal_pci_map_device(struct rte_pci_device *dev)/* Unmap pci device */ void -rte_eal_pci_unmap_device (struct rte_pci_device *dev) +rte_pci_unmap_device (struct rte_pci_device *dev) {/* try unmapping the NIC resources using VFIO if it exists */ switch (dev->kdrv) {
@@ -324,7 +324,7 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr) dev->device.numa_node = tmp; } -rte_eal_pci_device_name (addr, dev->name,sizeof (dev->name)); +rte_pci_device_name (addr, dev->name,sizeof (dev->name)); dev->device.name = dev->name;/* parse resources */
@@ -358,7 +358,7 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)/* device is valid, add in list (sorted) */ if (TAILQ_EMPTY (&rte_pci_bus.device_list)) { -rte_eal_pci_add_device (dev); +rte_pci_add_device (dev); }else {struct rte_pci_device *dev2;int ret;
@@ -369,7 +369,7 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)continue ;if (ret <0 ) { -rte_eal_pci_insert_device (dev2, dev); +rte_pci_insert_device (dev2, dev); }else {/* already registered */ dev2->kdrv = dev->kdrv; dev2->max_vfs = dev->max_vfs;
@@ -380,7 +380,7 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)return 0 ; } -rte_eal_pci_add_device (dev); +rte_pci_add_device (dev); }return 0 ;
@@ -449,7 +449,7 @@ parse_pci_addr_format(const char *buf, int bufsize, struct rte_pci_addr *addr)* list */ int -rte_eal_pci_scan (void ) +rte_pci_scan (void ) {struct dirent *e;DIR *dir;
@@ -489,8 +489,8 @@ rte_eal_pci_scan(void) }/* Read PCI config space. */ -int rte_eal_pci_read_config (const struct rte_pci_device *device, -void *buf,size_t len,off_t offset) +int rte_pci_read_config (const struct rte_pci_device *device, +void *buf,size_t len,off_t offset) {const struct rte_intr_handle *intr_handle = &device->intr_handle;
@@ -514,8 +514,8 @@ int rte_eal_pci_read_config(const struct rte_pci_device *device, }/* Write PCI config space. */ -int rte_eal_pci_write_config (const struct rte_pci_device *device, -const void *buf,size_t len,off_t offset) +int rte_pci_write_config (const struct rte_pci_device *device, +const void *buf,size_t len,off_t offset) {const struct rte_intr_handle *intr_handle = &device->intr_handle;
@@ -541,7 +541,7 @@ int rte_eal_pci_write_config(const struct rte_pci_device *device,#if defined(RTE_ARCH_X86 )static int pci_ioport_map(struct rte_pci_device *dev, int bar __rte_unused, -struct rte_pci_ioport *p) +struct rte_pci_ioport *p) {uint16_t start, end;FILE *fp;
@@ -599,8 +599,8 @@ pci_ioport_map(struct rte_pci_device *dev, int bar __rte_unused,#endif int -rte_eal_pci_ioport_map (struct rte_pci_device *dev,int bar, -struct rte_pci_ioport *p) +rte_pci_ioport_map (struct rte_pci_device *dev,int bar, +struct rte_pci_ioport *p) {int ret =-1 ;
@@ -637,8 +637,8 @@ rte_eal_pci_ioport_map(struct rte_pci_device *dev, int bar, }void -rte_eal_pci_ioport_read (struct rte_pci_ioport *p, -void *data,size_t len,off_t offset) +rte_pci_ioport_read (struct rte_pci_ioport *p, +void *data,size_t len,off_t offset) {switch (p->dev->kdrv) {#ifdef VFIO_PRESENT
@@ -663,8 +663,8 @@ rte_eal_pci_ioport_read(struct rte_pci_ioport *p, }void -rte_eal_pci_ioport_write (struct rte_pci_ioport *p, -const void *data,size_t len,off_t offset) +rte_pci_ioport_write (struct rte_pci_ioport *p, +const void *data,size_t len,off_t offset) {switch (p->dev->kdrv) {#ifdef VFIO_PRESENT
@@ -689,7 +689,7 @@ rte_eal_pci_ioport_write(struct rte_pci_ioport *p, }int -rte_eal_pci_ioport_unmap (struct rte_pci_ioport *p) +rte_pci_ioport_unmap (struct rte_pci_ioport *p) {int ret =-1 ;
lib/librte_eal/linuxapp/eal/rte_eal_version.map +15 -15
@@ -35,12 +35,6 @@ DPDK_2.0 { rte_eal_mp_remote_launch; rte_eal_mp_wait_lcore; rte_eal_parse_devargs_str; - rte_eal_pci_dump; - rte_eal_pci_probe; - rte_eal_pci_probe_one; - rte_eal_pci_register; - rte_eal_pci_scan; - rte_eal_pci_unregister; rte_eal_process_type; rte_eal_remote_launch; rte_eal_tailq_lookup;
@@ -106,9 +100,6 @@ DPDK_2.0 { DPDK_2.1 { global: - rte_eal_pci_detach; - rte_eal_pci_read_config; - rte_eal_pci_write_config; rte_epoll_ctl; rte_epoll_wait; rte_intr_allow_others;
@@ -138,12 +129,6 @@ DPDK_16.04 { global: rte_cpu_get_flag_name; - rte_eal_pci_ioport_map; - rte_eal_pci_ioport_read; - rte_eal_pci_ioport_unmap; - rte_eal_pci_ioport_write; - rte_eal_pci_map_device; - rte_eal_pci_unmap_device; rte_eal_primary_proc_alive; } DPDK_2.2;
@@ -193,6 +178,21 @@ DPDK_17.05 { rte_log_set_global_level; rte_log_set_level; rte_log_set_level_regexp; + rte_pci_detach; + rte_pci_dump; + rte_pci_ioport_map; + rte_pci_ioport_read; + rte_pci_ioport_unmap; + rte_pci_ioport_write; + rte_pci_map_device; + rte_pci_probe; + rte_pci_probe_one; + rte_pci_read_config; + rte_pci_register; + rte_pci_scan; + rte_pci_unmap_device; + rte_pci_unregister; + rte_pci_write_config; vfio_get_container_fd; vfio_get_group_fd; vfio_get_group_no;
lib/librte_eventdev/rte_eventdev.c +2 -2
@@ -1263,7 +1263,7 @@ rte_event_pmd_pci_probe(struct rte_pci_driver *pci_drv,if (eventdrv ==NULL )return -ENODEV ; -rte_eal_pci_device_name (&pci_dev->addr, eventdev_name, +rte_pci_device_name (&pci_dev->addr, eventdev_name,sizeof (eventdev_name)); eventdev = rte_event_pmd_allocate(eventdev_name,
@@ -1317,7 +1317,7 @@ rte_event_pmd_pci_remove(struct rte_pci_device *pci_dev)if (pci_dev ==NULL )return -EINVAL ; -rte_eal_pci_device_name (&pci_dev->addr, eventdev_name, +rte_pci_device_name (&pci_dev->addr, eventdev_name,sizeof (eventdev_name)); eventdev =rte_event_pmd_get_named_dev (eventdev_name);
Signature · 1 line
2.12.2
PATCH 2/2 vdev: remove eal prefix
In reply to Thomas MonjalonThe VDEV code will move to the bus drivers directory. Rename functions from rte_eal_vdev_ to rte_vdev_ to prepare the move of the driver out of EAL.
The prefix rte_eal_vdrv_ is also renamed to rte_vdev_. It was used for registration of vdev drivers.
--- doc/guides/cryptodevs/aesni_gcm.rst | 4 ++-- doc/guides/cryptodevs/aesni_mb.rst | 4 ++-- doc/guides/cryptodevs/kasumi.rst | 4 ++-- doc/guides/cryptodevs/null.rst | 4 ++-- doc/guides/cryptodevs/scheduler.rst | 4 ++-- doc/guides/cryptodevs/snow3g.rst | 4 ++-- doc/guides/cryptodevs/zuc.rst | 4 ++-- doc/guides/eventdevs/octeontx.rst | 4 ++-- doc/guides/eventdevs/sw.rst | 4 ++-- doc/guides/prog_guide/cryptodev_lib.rst | 4 ++-- drivers/net/bonding/rte_eth_bond_api.c | 4 ++-- lib/librte_cryptodev/rte_cryptodev.c | 2 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 8 ++++---- lib/librte_eal/common/eal_common_dev.c | 4 ++-- lib/librte_eal/common/eal_common_vdev.c | 8 ++++---- lib/librte_eal/common/include/rte_dev.h | 4 ++-- lib/librte_eal/common/include/rte_vdev.h | 6 +++--- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 8 ++++---- test/test/test_cryptodev.c | 20 ++++++++++---------- test/test/test_cryptodev_perf.c | 10 +++++----- test/test/test_eventdev.c | 2 +- test/test/test_eventdev_octeontx.c | 2 +- test/test/test_eventdev_sw.c | 2 +- test/test/test_link_bonding_rssconf.c | 2 +- 24 files changed, 61 insertions(+), 61 deletions(-)
doc/guides/cryptodevs/aesni_gcm.rst +2 -2
@@ -67,9 +67,9 @@ In order to enable this virtual crypto PMD, user must: To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_aesni_gcm") within the application. +* Call rte_vdev_init("crypto_aesni_gcm") within the application. -* Use --vdev="crypto_aesni_gcm" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_aesni_gcm" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/cryptodevs/aesni_mb.rst +2 -2
@@ -113,9 +113,9 @@ In order to enable this virtual crypto PMD, user must: To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_aesni_mb") within the application. +* Call rte_vdev_init("crypto_aesni_mb") within the application. -* Use --vdev="crypto_aesni_mb" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_aesni_mb" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/cryptodevs/kasumi.rst +2 -2
@@ -90,9 +90,9 @@ In order to enable this virtual crypto PMD, user must: To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_kasumi") within the application. +* Call rte_vdev_init("crypto_kasumi") within the application. -* Use --vdev="crypto_kasumi" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_kasumi" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/cryptodevs/null.rst +2 -2
@@ -76,9 +76,9 @@ Initialization To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_null") within the application. +* Call rte_vdev_init("crypto_null") within the application. -* Use --vdev="crypto_null" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_null" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/cryptodevs/scheduler.rst +2 -2
@@ -72,10 +72,10 @@ Initialization To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crpyto_scheduler") within the application. +* Call rte_vdev_init("crpyto_scheduler") within the application. * Use --vdev="crpyto_scheduler" in the EAL options, which will call - rte_eal_vdev_init() internally. + rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous
doc/guides/cryptodevs/snow3g.rst +2 -2
@@ -83,9 +83,9 @@ In order to enable this virtual crypto PMD, user must: To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_snow3g") within the application. +* Call rte_vdev_init("crypto_snow3g") within the application. -* Use --vdev="crypto_snow3g" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_snow3g" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/cryptodevs/zuc.rst +2 -2
@@ -91,9 +91,9 @@ In order to enable this virtual crypto PMD, user must: To use the PMD in an application, user must: -* Call rte_eal_vdev_init("crypto_zuc") within the application. +* Call rte_vdev_init("crypto_zuc") within the application. -* Use --vdev="crypto_zuc" in the EAL options, which will call rte_eal_vdev_init() internally. +* Use --vdev="crypto_zuc" in the EAL options, which will call rte_vdev_init() internally. The following parameters (all optional) can be provided in the previous two calls:
doc/guides/eventdevs/octeontx.rst +2 -2
@@ -129,10 +129,10 @@ SSO PCIe VF devices will be probed and then the vdev device can be created from the application code, or from the EAL command line based on the number of probed/bound SSO PCIe VF device to DPDK by -* Invoking ``rte_eal_vdev_init("event_octeontx")`` from the application +* Invoking ``rte_vdev_init("event_octeontx")`` from the application * Using ``--vdev="event_octeontx"`` in the EAL options, which will call - rte_eal_vdev_init() internally + rte_vdev_init() internally Example:
doc/guides/eventdevs/sw.rst +2 -2
@@ -60,10 +60,10 @@ Configuration and Options The software eventdev is a vdev device, and as such can be created from the application code, or from the EAL command line: -* Call ``rte_eal_vdev_init("event_sw0")`` from the application +* Call ``rte_vdev_init("event_sw0")`` from the application * Use ``--vdev="event_sw0"`` in the EAL options, which will call - rte_eal_vdev_init() internally + rte_vdev_init() internally Example:
doc/guides/prog_guide/cryptodev_lib.rst +2 -2
@@ -70,11 +70,11 @@ From the command line using the --vdev EAL option --vdev 'cryptodev_aesni_mb_pmd0,max_nb_queue_pairs=2,max_nb_sessions=1024,socket_id=0' -Our using the rte_eal_vdev_init API within the application code. +Our using the rte_vdev_init API within the application code. .. code-block:: c - rte_eal_vdev_init("cryptodev_aesni_mb_pmd", + rte_vdev_init("cryptodev_aesni_mb_pmd", "max_nb_queue_pairs=2,max_nb_sessions=1024,socket_id=0") All virtual Crypto devices support the following initialization parameters:
drivers/net/bonding/rte_eth_bond_api.c +2 -2
@@ -177,7 +177,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id)if (ret <0 || ret >= (int )sizeof (devargs))return -ENOMEM ; - ret =rte_eal_vdev_init (name, devargs); + ret =rte_vdev_init (name, devargs);if (ret)return -ENOMEM ;
@@ -200,7 +200,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id)int rte_eth_bond_free (const char *name) { -return rte_eal_vdev_uninit (name); +return rte_vdev_uninit (name); } static int
lib/librte_cryptodev/rte_cryptodev.c +1 -1
@@ -439,7 +439,7 @@ rte_cryptodev_get_feature_name(uint64_t flag)int rte_cryptodev_create_vdev (const char *name,const char *args) { -return rte_eal_vdev_init (name, args); +return rte_vdev_init (name, args); } struct rte_cryptodev *
lib/librte_eal/bsdapp/eal/rte_eal_version.map +4 -4
@@ -39,8 +39,6 @@ DPDK_2.0 { rte_eal_remote_launch; rte_eal_tailq_lookup; rte_eal_tailq_register; - rte_eal_vdev_init; - rte_eal_vdev_uninit; rte_eal_wait_lcore; rte_exit; rte_free;
@@ -147,8 +145,6 @@ DPDK_16.11 { rte_delay_us_callback_register; rte_eal_dev_attach; rte_eal_dev_detach; - rte_eal_vdrv_register; - rte_eal_vdrv_unregister; } DPDK_16.07;
@@ -188,6 +184,10 @@ DPDK_17.05 { rte_pci_unmap_device; rte_pci_unregister; rte_pci_write_config; + rte_vdev_init; + rte_vdev_register; + rte_vdev_uninit; + rte_vdev_unregister; vfio_get_container_fd; vfio_get_group_fd; vfio_get_group_no;
lib/librte_eal/common/eal_common_dev.c +2 -2
@@ -59,7 +59,7 @@ int rte_eal_dev_attach(const char *name, const char *devargs) goto err; }else { -if (rte_eal_vdev_init (name, devargs)) +if (rte_vdev_init (name, devargs)) goto err; }
@@ -83,7 +83,7 @@ int rte_eal_dev_detach(const char *name)if (rte_pci_detach (&addr) <0 ) goto err; }else { -if (rte_eal_vdev_uninit (name)) +if (rte_vdev_uninit (name)) goto err; }return 0 ;
lib/librte_eal/common/eal_common_vdev.c +4 -4
@@ -56,7 +56,7 @@ static void rte_vdev_bus_register(void);/* register a driver */ void -rte_eal_vdrv_register (struct rte_vdev_driver *driver) +rte_vdev_register (struct rte_vdev_driver *driver) {rte_vdev_bus_register ();
@@ -65,7 +65,7 @@ rte_eal_vdrv_register(struct rte_vdev_driver *driver)/* unregister a driver */ void -rte_eal_vdrv_unregister (struct rte_vdev_driver *driver) +rte_vdev_unregister (struct rte_vdev_driver *driver) {TAILQ_REMOVE (&vdev_driver_list, driver, next); }
@@ -194,7 +194,7 @@ alloc_devargs(const char *name, const char *args) }int -rte_eal_vdev_init (const char *name,const char *args) +rte_vdev_init (const char *name,const char *args) {struct rte_vdev_device *dev;struct rte_devargs *devargs;
@@ -257,7 +257,7 @@ vdev_remove_driver(struct rte_vdev_device *dev) }int -rte_eal_vdev_uninit (const char *name) +rte_vdev_uninit (const char *name) {struct rte_vdev_device *dev;struct rte_devargs *devargs;
lib/librte_eal/common/include/rte_dev.h +2 -2
@@ -153,7 +153,7 @@ struct rte_device {* @return * 0 on success, negative on error */ -int rte_eal_vdev_init (const char *name,const char *args); +int rte_vdev_init (const char *name,const char *args);/** * Uninitalize a driver specified by name.
@@ -163,7 +163,7 @@ int rte_eal_vdev_init(const char *name, const char *args);* @return * 0 on success, negative on error */ -int rte_eal_vdev_uninit (const char *name); +int rte_vdev_uninit (const char *name);/** * Attach a device to a registered driver.
lib/librte_eal/common/include/rte_vdev.h +3 -3
@@ -92,7 +92,7 @@ struct rte_vdev_driver {* A pointer to a rte_vdev_driver structure describing the driver * to be registered. */ -void rte_eal_vdrv_register (struct rte_vdev_driver *driver); +void rte_vdev_register (struct rte_vdev_driver *driver);/** * Unregister a virtual device driver.
@@ -101,7 +101,7 @@ void rte_eal_vdrv_register(struct rte_vdev_driver *driver);* A pointer to a rte_vdev_driver structure describing the driver * to be unregistered. */ -void rte_eal_vdrv_unregister (struct rte_vdev_driver *driver); +void rte_vdev_unregister (struct rte_vdev_driver *driver);#define RTE_PMD_REGISTER_VDEV (nm, vdrv)\ RTE_INIT(vdrvinitfn_ ##vdrv);\
@@ -110,7 +110,7 @@ static void vdrvinitfn_ ##vdrv(void)\ {\ (vdrv).driver.name =RTE_STR (nm);\ (vdrv).driver.alias = vdrvinit_ ## nm ## _alias;\ -rte_eal_vdrv_register (&vdrv);\ +rte_vdev_register (&vdrv);\ } \RTE_PMD_EXPORT_NAME (nm, __COUNTER__)
lib/librte_eal/linuxapp/eal/rte_eal_version.map +4 -4
@@ -39,8 +39,6 @@ DPDK_2.0 { rte_eal_remote_launch; rte_eal_tailq_lookup; rte_eal_tailq_register; - rte_eal_vdev_init; - rte_eal_vdev_uninit; rte_eal_wait_lcore; rte_exit; rte_free;
@@ -151,8 +149,6 @@ DPDK_16.11 { rte_delay_us_callback_register; rte_eal_dev_attach; rte_eal_dev_detach; - rte_eal_vdrv_register; - rte_eal_vdrv_unregister; } DPDK_16.07;
@@ -193,6 +189,10 @@ DPDK_17.05 { rte_pci_unmap_device; rte_pci_unregister; rte_pci_write_config; + rte_vdev_init; + rte_vdev_register; + rte_vdev_uninit; + rte_vdev_unregister; vfio_get_container_fd; vfio_get_group_fd; vfio_get_group_no;
test/test/test_cryptodev.c +10 -10
@@ -219,7 +219,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_AESNI_MB_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_AESNI_MB_PMD ),NULL ); TEST_ASSERT(ret == 0,
@@ -239,7 +239,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_AESNI_GCM_PMD );if (nb_devs <1 ) { - TEST_ASSERT_SUCCESS(rte_eal_vdev_init( + TEST_ASSERT_SUCCESS(rte_vdev_init( RTE_STR(CRYPTODEV_NAME_AESNI_GCM_PMD), NULL), "Failed to create instance of" " pmd : %s",
@@ -256,7 +256,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_SNOW3G_PMD );if (nb_devs <1 ) { - TEST_ASSERT_SUCCESS(rte_eal_vdev_init( + TEST_ASSERT_SUCCESS(rte_vdev_init( RTE_STR(CRYPTODEV_NAME_SNOW3G_PMD), NULL), "Failed to create instance of" " pmd : %s",
@@ -273,7 +273,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_KASUMI_PMD );if (nb_devs <1 ) { - TEST_ASSERT_SUCCESS(rte_eal_vdev_init( + TEST_ASSERT_SUCCESS(rte_vdev_init( RTE_STR(CRYPTODEV_NAME_KASUMI_PMD), NULL), "Failed to create instance of" " pmd : %s",
@@ -290,7 +290,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_ZUC_PMD );if (nb_devs <1 ) { - TEST_ASSERT_SUCCESS(rte_eal_vdev_init( + TEST_ASSERT_SUCCESS(rte_vdev_init( RTE_STR(CRYPTODEV_NAME_ZUC_PMD), NULL), "Failed to create instance of" " pmd : %s",
@@ -308,7 +308,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_NULL_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_NULL_PMD ),NULL ); TEST_ASSERT(ret == 0,
@@ -328,7 +328,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_OPENSSL_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_OPENSSL_PMD ),NULL );
@@ -348,7 +348,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_ARMV8_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_ARMV8_PMD ),NULL );
@@ -369,7 +369,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_SCHEDULER_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_SCHEDULER_PMD ),NULL );
@@ -7825,7 +7825,7 @@ test_scheduler_attach_slave_op(void)snprintf (vdev_name,sizeof (vdev_name),"%s_%u" ,RTE_STR (CRYPTODEV_NAME_AESNI_MB_PMD ), i); - ret =rte_eal_vdev_init (vdev_name,NULL ); + ret =rte_vdev_init (vdev_name,NULL );TEST_ASSERT (ret ==0 , "Failed to create instance %u of"
test/test/test_cryptodev_perf.c +5 -5
@@ -332,7 +332,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_AESNI_MB_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_AESNI_MB_PMD ),NULL ); TEST_ASSERT(ret == 0,
@@ -350,7 +350,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_AESNI_GCM_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_AESNI_GCM_PMD ),NULL ); TEST_ASSERT(ret == 0,
@@ -368,7 +368,7 @@ testsuite_setup(void)#endif nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_SNOW3G_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_SNOW3G_PMD ),NULL ); TEST_ASSERT(ret == 0,
@@ -387,7 +387,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_OPENSSL_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_OPENSSL_PMD ),NULL );
@@ -407,7 +407,7 @@ testsuite_setup(void) nb_devs =rte_cryptodev_count_devtype (RTE_CRYPTODEV_ARMV8_PMD );if (nb_devs <1 ) { - ret =rte_eal_vdev_init ( + ret =rte_vdev_init (RTE_STR (CRYPTODEV_NAME_ARMV8_PMD ),NULL );
test/test/test_eventdev.c +1 -1
@@ -51,7 +51,7 @@ testsuite_setup(void)if (!count) {printf ("Failed to find a valid event device," " testing with event_skeleton device\n" ); -return rte_eal_vdev_init ("event_skeleton" ,NULL ); +return rte_vdev_init ("event_skeleton" ,NULL ); }return TEST_SUCCESS ; }
test/test/test_eventdev_octeontx.c +1 -1
@@ -115,7 +115,7 @@ testsuite_setup(void)if (evdev <0 ) {printf ("%d: Eventdev %s not found - creating.\n" , __LINE__, eventdev_name); -if (rte_eal_vdev_init (eventdev_name,NULL ) <0 ) { +if (rte_vdev_init (eventdev_name,NULL ) <0 ) {printf ("Error creating eventdev %s\n" , eventdev_name);return TEST_FAILED ; }
test/test/test_eventdev_sw.c +1 -1
@@ -2999,7 +2999,7 @@ test_sw_eventdev(void)if (evdev <0 ) {printf ("%d: Eventdev %s not found - creating.\n" , __LINE__, eventdev_name); -if (rte_eal_vdev_init (eventdev_name,NULL ) <0 ) { +if (rte_vdev_init (eventdev_name,NULL ) <0 ) {printf ("Error creating eventdev\n" );return -1 ; }
test/test/test_link_bonding_rssconf.c +1 -1
@@ -550,7 +550,7 @@ test_setup(void) port_id =rte_eth_dev_count ();snprintf (name,sizeof (name),SLAVE_DEV_NAME_FMT , port_id); - retval =rte_eal_vdev_init (name, + retval =rte_vdev_init (name,"driver=net_null,size=64,copy=0" );TEST_ASSERT_SUCCESS (retval,"Failed to create null device '%s'\n" , name);
Signature · 1 line
2.12.2
Quoted 46 lines · On Thu, 4 May 2017 18:18:49 +0200 Thomas Monjalon <[email protected]> wrote:
It is planned to move the bus PCI and VDEV to /drivers/bus/ during 17.08. So the
eal_prefix will not make sense. Let's rename now before releasing 17.05 where EAL API has already some breaking changes.Thomas Monjalon (2):
pci: remove eal prefix
vdev: remove eal prefixapp/test-pmd/testpmd.c | 2 +- doc/guides/cryptodevs/aesni_gcm.rst | 4 +- doc/guides/cryptodevs/aesni_mb.rst | 4 +- doc/guides/cryptodevs/kasumi.rst | 4 +- doc/guides/cryptodevs/null.rst | 4 +- doc/guides/cryptodevs/scheduler.rst | 4 +- doc/guides/cryptodevs/snow3g.rst | 4 +- doc/guides/cryptodevs/zuc.rst | 4 +- doc/guides/eventdevs/octeontx.rst | 4 +- doc/guides/eventdevs/sw.rst | 4 +- doc/guides/prog_guide/cryptodev_lib.rst | 4 +- .../sample_app_ug/l2_forward_real_virtual.rst | 4 +- doc/guides/sample_app_ug/link_status_intr.rst | 4 +- doc/guides/sample_app_ug/multi_process.rst | 2 +- doc/guides/sample_app_ug/netmap_compatibility.rst | 2 +- doc/guides/sample_app_ug/quota_watermark.rst | 4 +- drivers/net/bnx2x/bnx2x.h | 6 +- drivers/net/bonding/rte_eth_bond_api.c | 4 +- drivers/net/cxgbe/base/adapter.h | 10 +-- drivers/net/i40e/i40e_ethdev.c | 6 +- drivers/net/mlx4/mlx4.c | 2 +- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/virtio/virtio_ethdev.c | 10 +-- drivers/net/virtio/virtio_pci.c | 81 ++++++++++------------ drivers/net/virtio/virtio_user_ethdev.c | 2 +- lib/librte_cryptodev/rte_cryptodev.c | 6 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 40 +++++------ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 38 +++++----- lib/librte_eal/common/eal_common_dev.c | 8 +-- lib/librte_eal/common/eal_common_pci.c | 42 +++++------ lib/librte_eal/common/eal_common_vdev.c | 8 +-- lib/librte_eal/common/eal_private.h | 8 +-- lib/librte_eal/common/include/rte_dev.h | 4 +- lib/librte_eal/common/include/rte_pci.h | 46 ++++++------ lib/librte_eal/common/include/rte_vdev.h | 6 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 38 +++++----- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 38 +++++-----
Quoted 9 lines
lib/librte_eventdev/rte_eventdev.c | 4 +- test/test/test_cryptodev.c | 20 +++--- test/test/test_cryptodev_perf.c | 10 +-- test/test/test_eventdev.c | 2 +- test/test/test_eventdev_octeontx.c | 2 +- test/test/test_eventdev_sw.c | 2 +- test/test/test_link_bonding_rssconf.c | 2 +- 44 files changed, 250 insertions(+), 255 deletions(-)
Thomas Monjalon
Applied04/05/2017 18:40, Stephen Hemminger:
Quoted 8 lines
Quoted 5 lines · On Thu, 4 May 2017 18:18:49 +0200 Thomas Monjalon <[email protected]> wrote:
It is planned to move the bus PCI and VDEV to /drivers/bus/ during 17.08. So the
eal_prefix will not make sense. Let's rename now before releasing 17.05 where EAL API has already some breaking changes.
Quoted 5 lines
Quoted 3 lines
Thomas Monjalon (2):
pci: remove eal prefix
vdev: remove eal prefix
Applied