Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 36) sorted by relevance

12

/dpdk/lib/vhost/
H A Dvhost_user.c343 dev->ifname); in vhost_user_set_features()
361 dev->ifname); in vhost_user_set_features()
381 dev->ifname, in vhost_user_set_features()
459 dev->ifname); in vhost_user_set_vring_num()
473 dev->ifname); in vhost_user_set_vring_num()
484 dev->ifname); in vhost_user_set_vring_num()
833 dev->ifname, in translate_ring_addresses()
838 dev->ifname); in translate_ring_addresses()
1086 dev->ifname, in vhost_user_postcopy_region_register()
1097 dev->ifname, in vhost_user_postcopy_region_register()
[all …]
H A Dvhost.c58 dev->ifname, iova); in __vhost_iova_to_vva()
125 dev->ifname, iova); in __vhost_log_write_iova()
242 dev->ifname, iova); in __vhost_log_cache_write_iova()
551 dev->ifname, vring_idx); in init_vring_queue()
558 dev->ifname, vring_idx); in init_vring_queue()
619 dev->ifname, i); in alloc_vring_queue()
754 dev->ifname[sizeof(dev->ifname) - 1] = '\0'; in vhost_set_ifname()
1763 dev->ifname); in rte_vhost_async_channel_unregister()
1770 dev->ifname); in rte_vhost_async_channel_unregister()
1805 dev->ifname); in rte_vhost_async_channel_unregister_thread_unsafe()
[all …]
H A Dvirtio_net.c1090 dev->ifname, num_buffers); in mbuf_to_desc()
1272 dev->ifname); in virtio_dev_rx_split()
1426 dev->ifname); in virtio_dev_rx_single_packed()
1533 dev->ifname, __func__); in rte_vhost_enqueue_burst()
1616 dev->ifname); in virtio_dev_rx_async_submit_split()
2180 dev->ifname, __func__); in rte_vhost_submit_enqueue_burst()
2587 dev->ifname); in copy_desc_to_mbuf()
2704 dev->ifname, count); in virtio_dev_tx_split()
2747 dev->ifname); in virtio_dev_tx_split()
2940 dev->ifname); in vhost_dequeue_single_packed()
[all …]
H A Diotlb.c75 dev->ifname, vq->iotlb_pool->name); in vhost_user_iotlb_pending_insert()
84 dev->ifname, vq->iotlb_pool->name); in vhost_user_iotlb_pending_insert()
174 dev->ifname, vq->iotlb_pool->name); in vhost_user_iotlb_cache_insert()
183 dev->ifname, vq->iotlb_pool->name); in vhost_user_iotlb_cache_insert()
323 VHOST_LOG_CONFIG(DEBUG, "(%s) IOTLB cache name: %s\n", dev->ifname, pool_name); in vhost_user_iotlb_init()
336 dev->ifname, pool_name); in vhost_user_iotlb_init()
H A Dvhost_user.h173 int read_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int max_fds,
175 int send_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int fd_num);
H A Dsocket.c102 read_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int max_fds, in read_fd_message() argument
127 ifname, sockfd, strerror(errno)); in read_fd_message()
132 VHOST_LOG_CONFIG(ERR, "(%s) truncated msg (fd %d)\n", ifname, sockfd); in read_fd_message()
155 send_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int fd_num) in send_fd_message() argument
177 VHOST_LOG_CONFIG(ERR, "(%s) cmsg == NULL\n", ifname); in send_fd_message()
196 ifname, sockfd, strerror(errno)); in send_fd_message()
/dpdk/examples/vdpa/
H A Dmain.c29 char ifname[MAX_PATH_LEN]; member
106 char ifname[MAX_PATH_LEN]; in new_device() local
110 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in new_device()
112 if (strncmp(ifname, vports[i].ifname, MAX_PATH_LEN)) in new_device()
136 char ifname[MAX_PATH_LEN]; in destroy_device() local
139 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in destroy_device()
141 if (strncmp(ifname, vports[i].ifname, MAX_PATH_LEN)) in destroy_device()
165 char *socket_path = vport->ifname; in start_vdpa()
206 char *socket_path = vport->ifname; in close_vdpa()
230 if (vports[i].ifname[0] != '\0') in vdpa_sample_quit()
[all …]
/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_kernel.c387 const char *ifname; in vhost_kernel_setup() local
436 ifname = dev->ifname != NULL ? dev->ifname : "tap%d"; in vhost_kernel_setup()
437 data->tapfds[0] = tap_open(ifname, r_flags, (tap_features & IFF_MULTI_QUEUE) != 0); in vhost_kernel_setup()
440 if (dev->ifname == NULL && tap_get_name(data->tapfds[0], &dev->ifname) < 0) { in vhost_kernel_setup()
445 PMD_DRV_LOG(ERR, "fail to get tap flags for tap %s", dev->ifname); in vhost_kernel_setup()
449 PMD_DRV_LOG(ERR, "tap %s does not support multi queue", dev->ifname); in vhost_kernel_setup()
454 data->tapfds[i] = tap_open(dev->ifname, r_flags, true); in vhost_kernel_setup()
H A Dvhost_kernel_tap.h40 int tap_open(const char *ifname, unsigned int r_flags, bool multi_queue);
41 int tap_get_name(int tapfd, char **ifname);
H A Dvirtio_user_dev.h48 char *ifname; member
68 int cq, int queue_size, const char *mac, char **ifname,
H A Dvhost_kernel_tap.c45 tap_open(const char *ifname, unsigned int r_flags, bool multi_queue) in tap_open() argument
63 strncpy(ifr.ifr_name, ifname, IFNAMSIZ - 1); in tap_open()
H A Dvirtio_user_dev.c564 int cq, int queue_size, const char *mac, char **ifname, in virtio_user_dev_init() argument
589 if (*ifname) { in virtio_user_dev_init()
590 dev->ifname = *ifname; in virtio_user_dev_init()
591 *ifname = NULL; in virtio_user_dev_init()
682 free(dev->ifname); in virtio_user_dev_uninit()
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_ethdev_os.c166 memcpy(ifname, priv->sh->bond.ifname, MLX5_NAMESIZE); in mlx5_get_ifname()
173 *ifname); in mlx5_get_ifname()
235 char ifname[sizeof(ifr->ifr_name)]; in mlx5_ifreq() local
238 ret = mlx5_get_ifname(dev, &ifname); in mlx5_ifreq()
1107 char ifname[IF_NAMESIZE]; in mlx5_sysfs_switch_info() local
1129 ifname); in mlx5_sysfs_switch_info()
1131 ifname); in mlx5_sysfs_switch_info()
1133 ifname); in mlx5_sysfs_switch_info()
1186 char *ifname) in mlx5_sysfs_bond_info() argument
1214 if (ifname) { in mlx5_sysfs_bond_info()
[all …]
H A Dmlx5_os.c1445 char ifname[MLX5_NAMESIZE]; in mlx5_dev_spawn() local
1449 eth_dev->data->port_id, ifname); in mlx5_dev_spawn()
1720 char ifname[IF_NAMESIZE + 1]; in mlx5_device_bond_pci_match() local
1753 if (!if_indextoname(ifindex, ifname)) in mlx5_device_bond_pci_match()
1774 "/sys/class/net/%s", ifname); in mlx5_device_bond_pci_match()
1778 ifname); in mlx5_device_bond_pci_match()
1813 strncpy(bond_info->ports[info.port_name].ifname, ifname, in mlx5_device_bond_pci_match()
1814 sizeof(bond_info->ports[0].ifname)); in mlx5_device_bond_pci_match()
1846 bond_info->ifname); in mlx5_device_bond_pci_match()
2140 char ifname[IF_NAMESIZE]; in mlx5_os_pci_probe_pf() local
[all …]
/dpdk/drivers/net/af_xdp/
H A Dcompat.h22 const char *ifname, in create_shared_socket() argument
30 return xsk_socket__create_shared(xsk_ptr, ifname, queue_id, umem, rx, in create_shared_socket()
36 const char *ifname __rte_unused, in create_shared_socket()
/dpdk/examples/ipsec-secgw/test/
H A Dpkttest.py50 def __init__(self, ifname): argument
51 self.name = ifname
59 …tl(self.s.fileno(), Interface.IOCTL_GET_INFO, struct.pack('256s', bytes(ifname[:15], encoding='as…
/dpdk/drivers/net/vhost/
H A Drte_eth_vhost.c495 find_internal_resource(char *ifname) in find_internal_resource() argument
501 if (ifname == NULL) in find_internal_resource()
794 char ifname[PATH_MAX]; in new_device() local
799 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in new_device()
800 list = find_internal_resource(ifname); in new_device()
855 char ifname[PATH_MAX]; in destroy_device() local
859 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in destroy_device()
860 list = find_internal_resource(ifname); in destroy_device()
953 char ifname[PATH_MAX]; in vring_state_changed() local
955 rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); in vring_state_changed()
[all …]
/dpdk/lib/pcapng/
H A Drte_pcapng.c161 char ifname[IF_NAMESIZE]; in pcapng_add_interface() local
169 if (if_indextoname(dev_info.if_index, ifname) == NULL) in pcapng_add_interface()
170 snprintf(ifname, IF_NAMESIZE, "dpdk:%u", port); in pcapng_add_interface()
192 len += pcapng_optlen(strlen(ifname)); /* ifname */ in pcapng_add_interface()
219 ifname, strlen(ifname)); in pcapng_add_interface()
/dpdk/app/test/
H A Dtest_red.c438 .ifname = "functional test 1 interface",
555 .ifname = "functional test 2 interface",
663 .ifname = "functional test 3 interface",
788 .ifname = "functional test 4 interface",
946 .ifname = "functional test 5 interface",
1074 .ifname = "functional test 6 interface",
1255 .ifname = "performance test 1 interface",
1266 .ifname = "performance test 2 interface",
1277 .ifname = "performance test 3 interface",
1363 .ifname = "performance test 4 interface",
[all …]
H A Dtest_pie.c80 const char *ifname; /**< Interface name */ member
354 .ifname = "functional test interface",
463 .ifname = "functional test 2 interface",
576 .ifname = "functional test interface",
787 .ifname = "performance test 1 interface",
864 .ifname = "performance test 2 interface",
/dpdk/drivers/net/mlx5/windows/
H A Dmlx5_ethdev_os.c59 mlx5_get_ifname(const struct rte_eth_dev *dev, char (*ifname)[MLX5_NAMESIZE]) in mlx5_get_ifname()
70 strncpy(*ifname, context_obj->mlx5_dev.name, MLX5_NAMESIZE); in mlx5_get_ifname()
H A Dmlx5_os.c448 char ifname[MLX5_NAMESIZE]; in mlx5_dev_spawn() local
450 if (mlx5_get_ifname(eth_dev, &ifname) == 0) in mlx5_dev_spawn()
452 eth_dev->data->port_id, ifname); in mlx5_dev_spawn()
/dpdk/drivers/net/virtio/
H A Dvirtio_user_ethdev.c474 char *ifname = NULL; in virtio_user_pmd_probe() local
542 &get_string_arg, &ifname) < 0) { in virtio_user_pmd_probe()
653 queue_size, mac_addr, &ifname, server_mode, in virtio_user_pmd_probe()
695 free(ifname); in virtio_user_pmd_probe()
/dpdk/drivers/net/mlx4/
H A Dmlx4_ethdev.c61 mlx4_get_ifname(const struct mlx4_priv *priv, char (*ifname)[IF_NAMESIZE]) in mlx4_get_ifname()
130 strncpy(*ifname, match, sizeof(*ifname)); in mlx4_get_ifname()
/dpdk/doc/guides/nics/
H A De1000em.rst107 -net tap,vlan=1,ifname=tapvm01,script=no,downscript=no
109 -net tap,vlan=2,ifname=tapvm02,script=no,downscript=no

12