| /dpdk/drivers/event/opdl/ |
| H A D | opdl_evdev_init.c | 292 static int opdl_add_deps(struct opdl_evdev *device, in opdl_add_deps() argument 299 struct opdl_queue *queue = &device->queue[q_id]; in opdl_add_deps() 300 struct opdl_queue *queue_deps = &device->queue[deps_q_id]; in opdl_add_deps() 315 opdl_pmd_dev_id(device)); in opdl_add_deps() 317 for (k = 0; k < device->nb_opdls; k++) { in opdl_add_deps() 318 opdl_ring_dump(device->opdl[k], in opdl_add_deps() 354 struct opdl_evdev *device = opdl_pmd_priv(dev); in opdl_add_event_handlers() local 357 for (i = 0; i < device->max_port_nb; i++) { in opdl_add_event_handlers() 359 struct opdl_port *port = &device->ports[i]; in opdl_add_event_handlers() 410 struct opdl_evdev *device = opdl_pmd_priv(dev); in build_all_dependencies() local [all …]
|
| H A D | opdl_evdev_xstats.c | 23 struct opdl_evdev *device = opdl_pmd_priv(dev); in opdl_xstats_init() local 25 if (!device->do_validation) in opdl_xstats_init() 28 for (i = 0; i < device->max_port_nb; i++) { in opdl_xstats_init() 29 struct opdl_port *port = &device->ports[i]; in opdl_xstats_init() 35 snprintf(device->port_xstat[index].stat.name, in opdl_xstats_init() 36 sizeof(device->port_xstat[index].stat.name), in opdl_xstats_init() 40 device->port_xstat[index].id = index; in opdl_xstats_init() 43 device->port_xstat[index].value = &port->port_stat[j]; in opdl_xstats_init() 51 struct opdl_evdev *device = opdl_pmd_priv(dev); in opdl_xstats_uninit() local 53 if (!device->do_validation) in opdl_xstats_uninit() [all …]
|
| /dpdk/lib/security/ |
| H A D | rte_security_driver.h | 43 * The application can get the security context from the crypto/eth device id 45 * This structure is used to identify the device(crypto/eth) for which the 49 void *device; member 50 /**< Crypto/ethernet device attached */ 52 /**< Pointer to security ops for the device */ 72 * Configure a security session on a device. 74 * @param device Crypto/eth device pointer 81 * - Returns -ENOTSUP if crypto device does not support the crypto transform. 83 typedef int (*security_session_create_t)(void *device, [all...] |
| /dpdk/doc/guides/nics/ |
| H A D | fail_safe.rst | 8 virtual device that allows using device supporting hotplug, without modifying 9 other components relying on such device (application, other PMDs). 10 In this context, hotplug support is meant as plugging or removing a device 14 ability to redirect operations to a secondary device when the primary has been 22 device underneath the Fail-safe PMD with a specific feature, this feature must 25 A notable exception is the device removal feature. The fail-safe PMD is not 27 If a sub-device supports hotplugging, the fail-safe PMD will enable its use 37 ``--vdev`` parameter to the EAL when starting the application. The device name 39 name must be unique for each device. Each fail-safe instance must have at least one 40 sub-device, and at most two. [all …]
|
| H A D | avp.rst | 8 The Accelerated Virtual Port (AVP) device is a shared memory based device 13 etc.). The platform offers the virtio device type as the default device when 14 launching a virtual machine or creating a virtual machine port. The AVP device 15 is a specialized device available to customers that require increased 21 supports a subset of the full Ethernet device API to enable the application to 22 use the standard device configuration functions and packet receive/transmit 28 significantly improved throughput and latency over other device types. 30 The AVP device implementation is integrated with the QEMU/KVM live-migration 44 * Up to 8 receive and transmit queues per device,
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | link_bonding_poll_mode_drv_lib.rst | 26 bonding device and its member devices. 48 packets in sequential order from the first available member device through 77 device to classify the packet to a specific member to transmit on. Alternate 136 The librte_net_bond bonding device is compatible with the Ethernet device API 146 After a member device is added to a bonding device member is stopped using 150 device. If RSS is enabled for bonding device, this mode is also enabled on new 152 Any flow which was configured to the bond device also is configured to the added 155 Setting up multi-queue mode for bonding device to RSS, makes it fully 160 Bonding device stores its own version of RSS settings i.e. RETA, RSS hash 162 of RSS configuration of bonding device as desired configuration of whole bonding [all …]
|
| /dpdk/drivers/bus/auxiliary/linux/ |
| H A D | auxiliary.c | 37 dev->device.name = dev->name; in auxiliary_scan_one() 38 dev->device.bus = &auxiliary_bus.bus; in auxiliary_scan_one() 45 dev->device.numa_node = tmp; in auxiliary_scan_one() 47 dev->device.numa_node = SOCKET_ID_ANY; in auxiliary_scan_one() 59 if (rte_dev_is_probed(&dev2->device) && in auxiliary_scan_one() 60 dev2->device.devargs != dev->device.devargs) { in auxiliary_scan_one() 62 rte_devargs_remove(dev2->device.devargs); in auxiliary_scan_one()
|
| /dpdk/doc/guides/vdpadevs/ |
| H A D | sfc.rst | 17 ef100 device can be configured in the net device or vDPA mode. 19 device is to be used in vDPA mode. If this parameter is not specified, device 20 will be probed by net/sfc driver and will used as a net device. 22 This PMD uses libefx (common/sfc_efx) code to access the device firmware. 61 The following per-device parameters can be passed via EAL PCI device 69 Choose the mode of operation of ef100 device. 70 **net** device will work as network device and will be probed by net/sfc driver. 71 **vdpa** device will work as vdpa device and will be probed by vdpa/sfc driver. 72 If this parameter is not specified then ef100 device will operate as network device. 101 dot and a PCI device identifier (``XXXX:XX:XX.X``) to the prefix.
|
| H A D | ifc.rst | 10 directly by DMA. Besides, it supports dirty page logging and device state 17 IFCVF's vendor ID and device ID are same as that of virtio net pci device, 18 with its specific subsystem vendor ID and device ID. To let the device be 20 device is to be used in vDPA mode, rather than polling mode, virtio PMD will 21 skip when it detects this message. If no this parameter specified, device 22 will not be used as a vDPA device, and it will be driven by virtio PMD. 26 the driver probe a new container is created for this device, with this 30 The device argument "sw-live-migration=1" will configure the driver into SW 32 thread when LM happens, this thread will help device to log dirty pages. Thus 35 throughput. If no this parameter specified, driver will rely on device's logging [all …]
|
| /dpdk/drivers/bus/pci/linux/ |
| H A D | pci.c | 221 dev = &pdev->device; in pci_scan_one() 222 dev->device.bus = &rte_pci_bus.bus; in pci_scan_one() 289 dev->device.numa_node = tmp; in pci_scan_one() 291 dev->device.numa_node = SOCKET_ID_ANY; in pci_scan_one() 340 if (!rte_dev_is_probed(&dev2->device)) { in pci_scan_one() 371 else if (dev2->device.devargs != in pci_scan_one() 372 dev->device.devargs) { in pci_scan_one() 373 rte_devargs_remove(dev2->device.devargs); in pci_scan_one() 630 int rte_pci_read_config(const struct rte_pci_device *device, in rte_pci_read_config() argument 634 const struct rte_intr_handle *intr_handle = device->intr_handle; in rte_pci_read_config() [all …]
|
| /dpdk/doc/guides/gpus/features/ |
| H A D | cuda.ini | 7 Get device info = Y 8 Share CPU memory with device = Y 9 Allocate device memory = Y 11 CPU map device memory = Y 12 CPU unmap device memory = Y
|
| H A D | default.ini | 10 Get device info = 11 Share CPU memory with device = 12 Allocate device memory = 14 CPU map device memory = 15 CPU unmap device memory =
|
| /dpdk/drivers/bus/vmbus/ |
| H A D | vmbus_channel.c | 308 int vmbus_chan_create(const struct rte_vmbus_device *device, in vmbus_chan_create() argument 316 device->device.numa_node); in vmbus_chan_create() 321 chan->device = device; in vmbus_chan_create() 325 chan->monitor_page = device->monitor_page; in vmbus_chan_create() 338 int rte_vmbus_chan_open(struct rte_vmbus_device *device, in rte_vmbus_chan_open() argument 344 uio_res = vmbus_uio_find_resource(device); in rte_vmbus_chan_open() 350 err = vmbus_chan_create(device, device->relid, 0, in rte_vmbus_chan_open() 351 device->monitor_id, new_chan); in rte_vmbus_chan_open() 353 device->primary = *new_chan; in rte_vmbus_chan_open() 358 int rte_vmbus_max_channels(const struct rte_vmbus_device *device) in rte_vmbus_max_channels() argument [all …]
|
| /dpdk/drivers/bus/vmbus/linux/ |
| H A D | vmbus_bus.c | 126 SYSFS_VMBUS_DEVICES "/%s/uio", dev->device.name); in vmbus_get_uio_dev() 245 dev->device.bus = &rte_vmbus_bus.bus; in vmbus_scan_one() 246 dev->device.name = dev_name = strdup(name); in vmbus_scan_one() 247 if (!dev->device.name) in vmbus_scan_one() 294 dev->device.numa_node = tmp; in vmbus_scan_one() 296 dev->device.numa_node = SOCKET_ID_ANY; in vmbus_scan_one() 299 dev->device.devargs = vmbus_devargs_lookup(dev); in vmbus_scan_one() 372 void rte_vmbus_irq_mask(struct rte_vmbus_device *device) in rte_vmbus_irq_mask() argument 374 vmbus_uio_irq_control(device, 1); in rte_vmbus_irq_mask() 377 void rte_vmbus_irq_unmask(struct rte_vmbus_device *device) in rte_vmbus_irq_unmask() argument [all …]
|
| /dpdk/lib/mldev/ |
| H A D | rte_mldev_pmd.c | 12 rte_ml_dev_pmd_create(const char *name, struct rte_device *device, in rte_ml_dev_pmd_create() argument 40 dev->device = device; in rte_ml_dev_pmd_create() 50 RTE_MLDEV_LOG(INFO, "Releasing ML device - name: %s", dev->device->name); in rte_ml_dev_pmd_destroy() 59 dev->device = NULL; in rte_ml_dev_pmd_destroy()
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_ethdev_mcs.h | 95 int cnxk_eth_macsec_sa_create(void *device, struct rte_security_macsec_sa *conf); 96 int cnxk_eth_macsec_sc_create(void *device, struct rte_security_macsec_sc *conf); 98 int cnxk_eth_macsec_sa_destroy(void *device, uint16_t sa_id, 100 int cnxk_eth_macsec_sc_destroy(void *device, uint16_t sc_id, 103 int cnxk_eth_macsec_sa_stats_get(void *device, uint16_t sa_id, 106 int cnxk_eth_macsec_sc_stats_get(void *device, uint16_t sa_id,
|
| /dpdk/app/test/ |
| H A D | test_security.c | 235 void *device; member 248 mock_session_create(void *device, in mock_session_create() argument 254 MOCK_TEST_ASSERT_POINTER_PARAMETER(mock_session_create_exp, device); in mock_session_create() 270 void *device; member 281 mock_session_update(void *device, in mock_session_update() argument 287 MOCK_TEST_ASSERT_POINTER_PARAMETER(mock_session_update_exp, device); in mock_session_update() 300 void *device; member 309 mock_session_get_size(void *device) in mock_session_get_size() argument 313 MOCK_TEST_ASSERT_POINTER_PARAMETER(mock_session_get_size_exp, device); in mock_session_get_size() 324 void *device; member [all …]
|
| /dpdk/drivers/bus/auxiliary/ |
| H A D | auxiliary_common.c | 68 aux_dev->device.devargs = auxiliary_devargs_lookup(aux_dev->name); in auxiliary_on_scan() 102 if (dev->device.devargs != NULL && in rte_auxiliary_probe_one_driver() 103 dev->device.devargs->policy == RTE_DEV_BLOCKED) { in rte_auxiliary_probe_one_driver() 108 if (dev->device.numa_node < 0 && rte_socket_count() > 1) in rte_auxiliary_probe_one_driver() 111 if (rte_dev_is_probed(&dev->device)) { in rte_auxiliary_probe_one_driver() 113 dev->device.name); in rte_auxiliary_probe_one_driver() 137 drv->driver.name, dev->name, dev->device.numa_node); in rte_auxiliary_probe_one_driver() 144 dev->device.driver = &drv->driver; in rte_auxiliary_probe_one_driver() 165 drv->driver.name, dev->name, dev->device.numa_node); in rte_auxiliary_driver_remove_dev() 175 dev->device.driver = NULL; in rte_auxiliary_driver_remove_dev() [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | vhost_blk.rst | 7 The vhost_blk sample application implemented a simple block device, 8 which used as the backend of Qemu vhost-user-blk device. Users can extend 9 the exist example to use other type of block device(e.g. AIO) besides 10 memory based block device. Similar with vhost-user-net device, the sample 22 This section shows the steps how to start a VM with the block device as 52 -device ide-hd,drive=disk,bootindex=0 \ 54 -device vhost-user-blk-pci,packed=on,chardev=char0,num-queues=1 \ 62 packed=on means the device support packed ring but need the guest kernel
|
| H A D | bbdev_app.rst | 16 The Baseband device sample application performs a loop-back operation using a 17 baseband device capable of transceiving data packets. 19 operation -> dequeued from the downlink baseband device -> enqueued for uplink 20 baseband operation -> dequeued from the baseband device -> then the received 29 * Only one baseband device and one ethernet port can be used. 60 This means that HW baseband device/s must be bound to a DPDK driver or 61 a SW baseband device/s (virtual BBdev) must be created (using --vdev). 63 To run the application in linux environment with the turbo_sw baseband device 64 using the allow option for pci device running on 1 encoding lcore and 1 decoding lcore 75 device gets linked to a corresponding ethernet port as allowed by [all …]
|
| /dpdk/lib/ethdev/ |
| H A D | ethdev_vdev.h | 20 * Allocates a new ethdev slot for an Ethernet device and returns the pointer 24 * Pointer to virtual device 45 dev->device.numa_node); in rte_eth_vdev_allocate() 52 eth_dev->device = &dev->device; in rte_eth_vdev_allocate() 55 eth_dev->data->numa_node = dev->device.numa_node; in rte_eth_vdev_allocate()
|
| H A D | ethdev_pci.h | 20 * Copy pci device info to the Ethernet device data. 48 eth_dev->data->numa_node = pci_dev->device.numa_node; in rte_eth_copy_pci_info() 67 * Allocates a new ethdev slot for an Ethernet device and returns the pointer 71 * Pointer to the PCI device 88 name = dev->device.name; in rte_eth_dev_pci_allocate() 96 /* Try and alloc the private-data structure on socket local to the device */ in rte_eth_dev_pci_allocate() 99 dev->device.numa_node); in rte_eth_dev_pci_allocate() 101 /* if cannot allocate memory on the socket local to the device in rte_eth_dev_pci_allocate() 115 dev->device [all...] |
| /dpdk/app/graph/ |
| H A D | commands.list | 12 ethdev <STRING>dev rxq <UINT16>nb_rxq txq <UINT16>nb_txq <STRING>mempool # Create Ethernet device 13 ethdev <STRING>__dev mtu <UINT16>size # Set MTU on Ethernet device 14 ethdev <STRING>__dev promiscuous <(on,off)>enable # Set promiscuous mode on Ethernet device 15 ethdev <STRING>__dev show # Command to dump Ethernet device info 16 ethdev <STRING>__dev stats # Command to dump Ethernet device stats 17 ethdev forward <STRING>tx_dev <STRING>rx_dev # Command to create Rx/Tx device map 18 ethdev <STRING>__dev ip4 addr add <IPv4>ip netmask <IPv4>mask # Set IPv4 address on Ethernet device 19 ethdev <STRING>__dev ip6 addr add <IPv6>ip netmask <IPv6>mask # Set IPv6 address on Ethernet device
|
| /dpdk/doc/guides/tools/ |
| H A D | devbind.rst | 31 For each device, it displays the PCI domain, bus, slot and function, 32 along with a text description of the device. Depending upon whether the 33 device is being used by a kernel driver, the ``vfio-pci`` driver, or no 37 - any suitable drivers not currently using that device e.g. ``unused=vfio-pci`` 44 Select the driver to use or "none" to unbind the device 48 Unbind a device (Equivalent to ``-b none``) 64 …Any Virtual Function device can be used with VFIO on its own, but physical devices will require ei… 67 …If your device is behind a PCI-to-PCI bridge, the bridge will then be part of the IOMMU group in w… 68 …Therefore, the bridge driver should also be unbound from the bridge PCI device for VFIO to work wi… 79 To display current device status:: [all …]
|
| /dpdk/drivers/dma/idxd/ |
| H A D | idxd_bus.c | 36 struct rte_device device; /**< Inherit core device */ member 224 dev->wq_name, dev->device.numa_node); in idxd_probe_dsa() 241 ret = idxd_dmadev_create(dev->wq_name, &dev->device, &idxd, &idxd_bus_ops); in idxd_probe_dsa() 281 retval = search_devargs(dev->device.name); in is_for_this_process_use() 283 retval = !search_devargs(dev->device.name); in is_for_this_process_use() 304 dev->device.driver = &dsa_bus.driver; in dsa_probe() 353 dev->device.bus = &dsa_bus.bus; in dsa_scan() 359 dev->device.numa_node = numa_node; in dsa_scan() 360 dev->device.name = dev->wq_name; in dsa_scan() 374 RTE_BUILD_BUG_ON(offsetof(struct rte_dsa_device, device) != 0); in dsa_find_device() [all …]
|