Home
last modified time | relevance | path

Searched refs:eth_dev (Results 1 – 25 of 85) sorted by relevance

1234

/dpdk/lib/ethdev/
H A Dethdev_pci.h21 * Shared memory (eth_dev->data) only updated by primary process, so it is safe
24 * @param eth_dev
25 * The *eth_dev* pointer is the address of the *rte_eth_dev* structure.
30 rte_eth_copy_pci_info(struct rte_eth_dev *eth_dev, in rte_eth_copy_pci_info() argument
33 if ((eth_dev == NULL) || (pci_dev == NULL)) { in rte_eth_copy_pci_info()
34 RTE_ETHDEV_LOG_LINE(ERR, "NULL pointer eth_dev=%p pci_dev=%p", in rte_eth_copy_pci_info()
35 (void *)eth_dev, (void *)pci_dev); in rte_eth_copy_pci_info()
39 eth_dev->intr_handle = pci_dev->intr_handle; in rte_eth_copy_pci_info()
42 eth_dev->data->dev_flags = 0; in rte_eth_copy_pci_info()
44 eth_dev in rte_eth_copy_pci_info()
53 eth_dev_pci_specific_init(struct rte_eth_dev * eth_dev,void * bus_device) eth_dev_pci_specific_init() argument
82 struct rte_eth_dev *eth_dev; rte_eth_dev_pci_allocate() local
126 struct rte_eth_dev *eth_dev; rte_eth_dev_pci_generic_probe() local
154 struct rte_eth_dev *eth_dev; rte_eth_dev_pci_generic_remove() local
[all...]
H A Dethdev_vdev.h35 struct rte_eth_dev *eth_dev; in rte_eth_vdev_allocate() local
38 eth_dev = rte_eth_dev_allocate(name); in rte_eth_vdev_allocate()
39 if (!eth_dev) in rte_eth_vdev_allocate()
43 eth_dev->data->dev_private = rte_zmalloc_socket(name, in rte_eth_vdev_allocate()
46 if (!eth_dev->data->dev_private) { in rte_eth_vdev_allocate()
47 rte_eth_dev_release_port(eth_dev); in rte_eth_vdev_allocate()
52 eth_dev->device = &dev->device; in rte_eth_vdev_allocate()
53 eth_dev->intr_handle = NULL; in rte_eth_vdev_allocate()
55 eth_dev->data->numa_node = dev->device.numa_node; in rte_eth_vdev_allocate()
56 return eth_dev; in rte_eth_vdev_allocate()
[all...]
H A Dethdev_driver.c70 struct rte_eth_dev *eth_dev = &rte_eth_devices[port_id]; in eth_dev_get() local
72 eth_dev->data = &eth_dev_shared_data->data[port_id]; in eth_dev_get()
74 return eth_dev; in eth_dev_get()
81 struct rte_eth_dev *eth_dev = NULL; in rte_eth_dev_allocate() local
115 eth_dev = eth_dev_get(port_id); in rte_eth_dev_allocate()
116 eth_dev->flow_fp_ops = &rte_flow_fp_default_ops; in rte_eth_dev_allocate()
117 strlcpy(eth_dev->data->name, name, sizeof(eth_dev->data->name)); in rte_eth_dev_allocate()
118 eth_dev->data->port_id = port_id; in rte_eth_dev_allocate()
119 eth_dev in rte_eth_dev_allocate()
157 struct rte_eth_dev *eth_dev = NULL; rte_eth_dev_attach_secondary() local
230 rte_eth_dev_release_port(struct rte_eth_dev * eth_dev) rte_eth_dev_release_port() argument
[all...]
/dpdk/drivers/net/cnxk/
H A Dcn9k_tx_select.c9 pick_tx_func(struct rte_eth_dev *eth_dev, in pick_tx_func() argument
12 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in pick_tx_func()
15 eth_dev->tx_pkt_burst = in pick_tx_func()
18 if (eth_dev->data->dev_started) in pick_tx_func()
19 rte_eth_fp_ops[eth_dev->data->port_id].tx_pkt_burst = in pick_tx_func()
20 eth_dev->tx_pkt_burst; in pick_tx_func()
41 cn9k_eth_set_tx_tmplt_func(struct rte_eth_dev *eth_dev) in cn9k_eth_set_tx_tmplt_func() argument
44 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn9k_eth_set_tx_tmplt_func()
71 pick_tx_func(eth_dev, nix_eth_tx_burst); in cn9k_eth_set_tx_tmplt_func()
73 pick_tx_func(eth_dev, nix_eth_tx_burst_mseg); in cn9k_eth_set_tx_tmplt_func()
[all …]
H A Dcn10k_tx_select.c9 pick_tx_func(struct rte_eth_dev *eth_dev, in pick_tx_func() argument
12 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in pick_tx_func()
15 eth_dev->tx_pkt_burst = in pick_tx_func()
18 if (eth_dev->data->dev_started) in pick_tx_func()
19 rte_eth_fp_ops[eth_dev->data->port_id].tx_pkt_burst = in pick_tx_func()
20 eth_dev->tx_pkt_burst; in pick_tx_func()
41 cn10k_eth_set_tx_tmplt_func(struct rte_eth_dev *eth_dev) in cn10k_eth_set_tx_tmplt_func() argument
44 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn10k_eth_set_tx_tmplt_func()
75 pick_tx_func(eth_dev, nix_eth_tx_burst); in cn10k_eth_set_tx_tmplt_func()
77 pick_tx_func(eth_dev, nix_eth_tx_burst_mseg); in cn10k_eth_set_tx_tmplt_func()
[all …]
H A Dcn9k_rx_select.c9 pick_rx_func(struct rte_eth_dev *eth_dev, in pick_rx_func() argument
12 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in pick_rx_func()
15 eth_dev->rx_pkt_burst = in pick_rx_func()
18 if (eth_dev->data->dev_started) in pick_rx_func()
19 rte_eth_fp_ops[eth_dev->data->port_id].rx_pkt_burst = in pick_rx_func()
20 eth_dev->rx_pkt_burst; in pick_rx_func()
25 cn9k_eth_set_rx_tmplt_func(struct rte_eth_dev *eth_dev) in cn9k_eth_set_rx_tmplt_func() argument
28 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn9k_eth_set_rx_tmplt_func()
64 return pick_rx_func(eth_dev, nix_eth_rx_burst_mseg); in cn9k_eth_set_rx_tmplt_func()
65 return pick_rx_func(eth_dev, nix_eth_rx_burst); in cn9k_eth_set_rx_tmplt_func()
[all …]
H A Dcn10k_rx_select.c9 pick_rx_func(struct rte_eth_dev *eth_dev, in pick_rx_func() argument
12 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in pick_rx_func()
15 eth_dev->rx_pkt_burst = in pick_rx_func()
18 if (eth_dev->data->dev_started) in pick_rx_func()
19 rte_eth_fp_ops[eth_dev->data->port_id].rx_pkt_burst = in pick_rx_func()
20 eth_dev->rx_pkt_burst; in pick_rx_func()
34 cn10k_eth_set_rx_tmplt_func(struct rte_eth_dev *eth_dev) in cn10k_eth_set_rx_tmplt_func() argument
37 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn10k_eth_set_rx_tmplt_func()
98 return pick_rx_func(eth_dev, in cn10k_eth_set_rx_tmplt_func()
101 return pick_rx_func(eth_dev, in cn10k_eth_set_rx_tmplt_func()
[all …]
H A Dcnxk_link.c24 rte_eth_linkstatus_set(dev->eth_dev, &link); in cnxk_nix_toggle_flag_link_cfg()
47 nix_link_status_print(struct rte_eth_dev *eth_dev, struct rte_eth_link *link) in nix_link_status_print() argument
51 (int)(eth_dev->data->port_id), in nix_link_status_print()
57 plt_info("Port %d: Link Down", (int)(eth_dev->data->port_id)); in nix_link_status_print()
66 struct rte_eth_dev *eth_dev; in cnxk_eth_dev_link_status_get_cb() local
71 eth_dev = dev->eth_dev; in cnxk_eth_dev_link_status_get_cb()
72 if (!eth_dev) in cnxk_eth_dev_link_status_get_cb()
75 rte_eth_linkstatus_get(eth_dev, &eth_link); in cnxk_eth_dev_link_status_get_cb()
88 struct rte_eth_dev *eth_dev; in cnxk_eth_dev_link_status_cb() local
93 eth_dev = dev->eth_dev; in cnxk_eth_dev_link_status_cb()
[all …]
H A Dcn10k_flow.c11 cn10k_mtr_connect(struct rte_eth_dev *eth_dev, uint32_t mtr_id) in cn10k_mtr_connect() argument
13 return nix_mtr_connect(eth_dev, mtr_id); in cn10k_mtr_connect()
17 cn10k_mtr_destroy(struct rte_eth_dev *eth_dev, uint32_t mtr_id) in cn10k_mtr_destroy() argument
21 return nix_mtr_destroy(eth_dev, mtr_id, &mtr_error); in cn10k_mtr_destroy()
25 cn10k_mtr_configure(struct rte_eth_dev *eth_dev, in cn10k_mtr_configure() argument
48 nix_mtr_rq_update(eth_dev, mtr_id, 1, in cn10k_mtr_configure()
55 nix_mtr_rq_update(eth_dev, mtr_id, in cn10k_mtr_configure()
67 rc = nix_mtr_validate(eth_dev, next_mtr_id); in cn10k_mtr_configure()
71 rc = nix_mtr_policy_act_get(eth_dev, next_mtr_id, &policy); in cn10k_mtr_configure()
75 rc = nix_mtr_color_action_validate(eth_dev, mtr_id, in cn10k_mtr_configure()
[all …]
H A Dcnxk_ptp.c8 cnxk_nix_read_clock(struct rte_eth_dev *eth_dev, uint64_t *clock) in cnxk_nix_read_clock() argument
10 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_read_clock()
76 cnxk_nix_timesync_read_time(struct rte_eth_dev *eth_dev, struct timespec *ts) in cnxk_nix_timesync_read_time() argument
78 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_timesync_read_time()
93 cnxk_nix_timesync_write_time(struct rte_eth_dev *eth_dev, in cnxk_nix_timesync_write_time() argument
96 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_timesync_write_time()
109 cnxk_nix_timesync_adjust_time(struct rte_eth_dev *eth_dev, int64_t delta) in cnxk_nix_timesync_adjust_time() argument
111 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_timesync_adjust_time()
139 cnxk_nix_timesync_read_rx_timestamp(struct rte_eth_dev *eth_dev, in cnxk_nix_timesync_read_rx_timestamp() argument
142 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_timesync_read_rx_timestamp()
[all …]
H A Dcn9k_flow.c10 cn9k_flow_create(struct rte_eth_dev *eth_dev, const struct rte_flow_attr *attr, in cn9k_flow_create() argument
15 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn9k_flow_create()
21 flow = cnxk_flow_create(eth_dev, attr, pattern, actions, error); in cn9k_flow_create()
29 cn9k_eth_set_rx_function(eth_dev); in cn9k_flow_create()
36 cn9k_eth_set_rx_function(eth_dev); in cn9k_flow_create()
43 cn9k_flow_destroy(struct rte_eth_dev *eth_dev, struct rte_flow *rte_flow, in cn9k_flow_destroy() argument
47 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cn9k_flow_destroy()
59 cn9k_eth_set_rx_function(eth_dev); in cn9k_flow_destroy()
70 cn9k_eth_set_rx_function(eth_dev); in cn9k_flow_destroy()
75 return cnxk_flow_destroy(eth_dev, flow, error); in cn9k_flow_destroy()
H A Dcnxk_ethdev_mtr.c188 struct cnxk_eth_dev *eth_dev = cnxk_eth_pmd_priv(dev); in cnxk_nix_mtr_capabilities_get() local
190 struct roc_nix *nix = &eth_dev->nix; in cnxk_nix_mtr_capabilities_get()
227 cnxk_nix_mtr_profile_add(struct rte_eth_dev *eth_dev, uint32_t profile_id, in cnxk_nix_mtr_profile_add() argument
231 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_mtr_profile_add()
264 cnxk_nix_mtr_profile_delete(struct rte_eth_dev *eth_dev, uint32_t profile_id, in cnxk_nix_mtr_profile_delete() argument
267 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_mtr_profile_delete()
413 cnxk_nix_mtr_policy_add(struct rte_eth_dev *eth_dev, uint32_t policy_id, in cnxk_nix_mtr_policy_add() argument
417 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_mtr_policy_add()
435 rc = cnxk_nix_mtr_policy_validate(eth_dev, policy, error); in cnxk_nix_mtr_policy_add()
451 cnxk_nix_mtr_policy_delete(struct rte_eth_dev *eth_dev, uint32_t policy_id, in cnxk_nix_mtr_policy_delete() argument
[all …]
H A Dcnxk_flow.h32 struct roc_npc_flow *cnxk_flow_create_common(struct rte_eth_dev *eth_dev,
37 int cnxk_flow_validate_common(struct rte_eth_dev *eth_dev, const struct rte_flow_attr *attr,
41 int cnxk_flow_destroy_common(struct rte_eth_dev *eth_dev, struct roc_npc_flow *flow,
43 int cnxk_flow_flush_common(struct rte_eth_dev *eth_dev, struct rte_flow_error *error, bool is_rep);
44 int cnxk_flow_query_common(struct rte_eth_dev *eth_dev, struct rte_flow *flow,
47 int cnxk_flow_dev_dump_common(struct rte_eth_dev *eth_dev, struct rte_flow *flow, FILE *file,
H A Dcnxk_stats.c11 cnxk_nix_stats_get(struct rte_eth_dev *eth_dev, struct rte_eth_stats *stats) in cnxk_nix_stats_get() argument
13 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_stats_get()
64 cnxk_nix_stats_reset(struct rte_eth_dev *eth_dev) in cnxk_nix_stats_reset() argument
66 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_stats_reset()
72 cnxk_nix_queue_stats_mapping(struct rte_eth_dev *eth_dev, uint16_t queue_id, in cnxk_nix_queue_stats_mapping() argument
75 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_queue_stats_mapping()
91 cnxk_nix_xstats_get(struct rte_eth_dev *eth_dev, struct rte_eth_xstat *xstats, in cnxk_nix_xstats_get() argument
94 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_xstats_get()
166 cnxk_nix_xstats_get_names(struct rte_eth_dev *eth_dev, in cnxk_nix_xstats_get_names() argument
170 struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); in cnxk_nix_xstats_get_names()
[all …]
/dpdk/drivers/net/cxgbe/
H A Dcxgbe_pfvf.h19 void cxgbe_dev_rx_queue_release(struct rte_eth_dev *eth_dev, uint16_t qid);
20 void cxgbe_dev_tx_queue_release(struct rte_eth_dev *eth_dev, uint16_t qid);
21 int cxgbe_dev_stop(struct rte_eth_dev *eth_dev);
22 int cxgbe_dev_close(struct rte_eth_dev *eth_dev);
23 int cxgbe_dev_info_get(struct rte_eth_dev *eth_dev,
25 int cxgbe_dev_promiscuous_enable(struct rte_eth_dev *eth_dev);
26 int cxgbe_dev_promiscuous_disable(struct rte_eth_dev *eth_dev);
27 int cxgbe_dev_allmulticast_enable(struct rte_eth_dev *eth_dev);
28 int cxgbe_dev_allmulticast_disable(struct rte_eth_dev *eth_dev);
30 int cxgbe_dev_configure(struct rte_eth_dev *eth_dev);
[all …]
H A Dcxgbevf_main.c206 struct rte_eth_dev *eth_dev; in cxgbevf_probe() local
219 eth_dev = adapter->eth_dev; in cxgbevf_probe()
229 eth_dev = rte_eth_dev_allocate(name); in cxgbevf_probe()
230 if (!eth_dev) { in cxgbevf_probe()
234 eth_dev->data->dev_private = in cxgbevf_probe()
237 if (!eth_dev->data->dev_private) in cxgbevf_probe()
241 pi = eth_dev->data->dev_private; in cxgbevf_probe()
243 pi->eth_dev = eth_dev; in cxgbevf_probe()
249 pi->eth_dev->device = &adapter->pdev->device; in cxgbevf_probe()
250 pi->eth_dev->dev_ops = adapter->eth_dev->dev_ops; in cxgbevf_probe()
[all …]
H A Dcxgbevf_ethdev.c36 static int cxgbevf_dev_stats_get(struct rte_eth_dev *eth_dev, in cxgbevf_dev_stats_get() argument
39 struct port_info *pi = eth_dev->data->dev_private; in cxgbevf_dev_stats_get()
102 static int eth_cxgbevf_dev_init(struct rte_eth_dev *eth_dev) in eth_cxgbevf_dev_init() argument
104 struct port_info *pi = eth_dev->data->dev_private; in eth_cxgbevf_dev_init()
112 eth_dev->dev_ops = &cxgbevf_eth_dev_ops; in eth_cxgbevf_dev_init()
113 eth_dev->rx_pkt_burst = &cxgbe_recv_pkts; in eth_cxgbevf_dev_init()
114 eth_dev->tx_pkt_burst = &cxgbe_xmit_pkts; in eth_cxgbevf_dev_init()
115 pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_cxgbevf_dev_init()
133 eth_dev->dev_ops; in eth_cxgbevf_dev_init()
135 eth_dev->rx_pkt_burst; in eth_cxgbevf_dev_init()
[all …]
H A Dcxgbe_ethdev.c113 int cxgbe_dev_info_get(struct rte_eth_dev *eth_dev, in cxgbe_dev_info_get() argument
116 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_info_get()
153 int cxgbe_dev_promiscuous_enable(struct rte_eth_dev *eth_dev) in cxgbe_dev_promiscuous_enable() argument
155 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_promiscuous_enable()
169 int cxgbe_dev_promiscuous_disable(struct rte_eth_dev *eth_dev) in cxgbe_dev_promiscuous_disable() argument
171 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_promiscuous_disable()
185 int cxgbe_dev_allmulticast_enable(struct rte_eth_dev *eth_dev) in cxgbe_dev_allmulticast_enable() argument
187 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_allmulticast_enable()
196 int cxgbe_dev_allmulticast_disable(struct rte_eth_dev *eth_dev) in cxgbe_dev_allmulticast_disable() argument
198 struct port_info *pi = eth_dev->data->dev_private; in cxgbe_dev_allmulticast_disable()
[all …]
/dpdk/drivers/net/ionic/
H A Dionic_ethdev.c17 static int eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params);
18 static int eth_ionic_dev_uninit(struct rte_eth_dev *eth_dev);
19 static int ionic_dev_info_get(struct rte_eth_dev *eth_dev,
28 static int ionic_flow_ctrl_get(struct rte_eth_dev *eth_dev,
30 static int ionic_flow_ctrl_set(struct rte_eth_dev *eth_dev,
32 static int ionic_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask);
33 static int ionic_dev_rss_reta_update(struct rte_eth_dev *eth_dev,
35 static int ionic_dev_rss_reta_query(struct rte_eth_dev *eth_dev,
37 static int ionic_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev,
39 static int ionic_dev_rss_hash_update(struct rte_eth_dev *eth_dev,
[all …]
/dpdk/drivers/net/bnxt/
H A Dbnxt_reps.h24 int bnxt_representor_init(struct rte_eth_dev *eth_dev, void *params);
25 int bnxt_representor_uninit(struct rte_eth_dev *eth_dev);
26 int bnxt_rep_dev_info_get_op(struct rte_eth_dev *eth_dev,
28 int bnxt_rep_dev_configure_op(struct rte_eth_dev *eth_dev);
30 int bnxt_rep_link_update_op(struct rte_eth_dev *eth_dev, int wait_to_compl);
31 int bnxt_rep_dev_start_op(struct rte_eth_dev *eth_dev);
32 int bnxt_rep_rx_queue_setup_op(struct rte_eth_dev *eth_dev,
39 int bnxt_rep_tx_queue_setup_op(struct rte_eth_dev *eth_dev,
47 int bnxt_rep_dev_stop_op(struct rte_eth_dev *eth_dev);
48 int bnxt_rep_dev_close_op(struct rte_eth_dev *eth_dev);
[all …]
H A Dbnxt_stats.h12 int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
14 int bnxt_stats_reset_op(struct rte_eth_dev *eth_dev);
15 int bnxt_dev_xstats_get_names_op(struct rte_eth_dev *eth_dev,
18 int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev,
20 int bnxt_dev_xstats_reset_op(struct rte_eth_dev *eth_dev);
/dpdk/drivers/net/qede/
H A Dqede_ethdev.c14 static int qede_eth_dev_uninit(struct rte_eth_dev *eth_dev);
15 static int qede_eth_dev_init(struct rte_eth_dev *eth_dev);
290 struct rte_eth_dev *eth_dev = (struct rte_eth_dev *)param; in qede_interrupt_handler_intx() local
291 struct qede_dev *qdev = eth_dev->data->dev_private; in qede_interrupt_handler_intx()
300 if (rte_intr_ack(eth_dev->intr_handle)) in qede_interrupt_handler_intx()
308 struct rte_eth_dev *eth_dev = (struct rte_eth_dev *)param; in qede_interrupt_handler() local
309 struct qede_dev *qdev = eth_dev->data->dev_private; in qede_interrupt_handler()
313 if (rte_intr_ack(eth_dev->intr_handle)) in qede_interrupt_handler()
507 int qede_activate_vport(struct rte_eth_dev *eth_dev, bool flg) in qede_activate_vport() argument
509 struct qede_dev *qdev = QEDE_INIT_QDEV(eth_dev); in qede_activate_vport()
[all …]
/dpdk/drivers/net/virtio/
H A Dvirtio_pci_ethdev.c72 eth_virtio_pci_init(struct rte_eth_dev *eth_dev) in eth_virtio_pci_init() argument
74 struct virtio_pci_dev *dev = eth_dev->data->dev_private; in eth_virtio_pci_init()
76 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_virtio_pci_init()
80 hw->port_id = eth_dev->data->port_id; in eth_virtio_pci_init()
82 ret = vtpci_init(RTE_ETH_DEV_TO_PCI(eth_dev), dev); in eth_virtio_pci_init()
94 ret = virtio_remap_pci(RTE_ETH_DEV_TO_PCI(eth_dev), dev); in eth_virtio_pci_init()
101 ret = eth_virtio_dev_init(eth_dev); in eth_virtio_pci_init()
108 eth_dev->data->port_id, pci_dev->id.vendor_id, in eth_virtio_pci_init()
114 rte_pci_unmap_device(RTE_ETH_DEV_TO_PCI(eth_dev)); in eth_virtio_pci_init()
122 eth_virtio_pci_uninit(struct rte_eth_dev *eth_dev) in eth_virtio_pci_uninit() argument
[all …]
/dpdk/app/test/
H A Dvirtual_pmd.c37 virtual_ethdev_start_success(struct rte_eth_dev *eth_dev __rte_unused) in virtual_ethdev_start_success()
39 eth_dev->data->dev_started = 1; in virtual_ethdev_start_success()
45 virtual_ethdev_start_fail(struct rte_eth_dev *eth_dev __rte_unused) in virtual_ethdev_start_fail()
47 eth_dev->data->dev_started = 0; in virtual_ethdev_start_fail()
51 static int virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused) in virtual_ethdev_stop()
54 struct virtual_ethdev_private *prv = eth_dev->data->dev_private; in virtual_ethdev_stop()
56 eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN; in virtual_ethdev_stop()
57 eth_dev->data->dev_started = 0; in virtual_ethdev_stop()
507 struct rte_eth_dev *eth_dev = NULL; in virtual_ethdev_create() local
548 eth_dev = rte_eth_dev_allocate(name); in virtual_ethdev_create()
[all …]
/dpdk/drivers/net/sfc/
H A Dsfc_intr.c59 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(sa->eth_dev); in sfc_intr_line_handler()
90 sa->eth_dev->data->dev_link.link_status ? in sfc_intr_line_handler()
92 rte_eth_dev_callback_process(sa->eth_dev, in sfc_intr_line_handler()
105 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(sa->eth_dev); in sfc_intr_message_handler()
134 rte_eth_dev_callback_process(sa->eth_dev, in sfc_intr_message_handler()
161 pci_dev = RTE_ETH_DEV_TO_PCI(sa->eth_dev); in sfc_intr_start()
168 intr_vector = sa->eth_dev->data->nb_rx_queues; in sfc_intr_start()
176 sa->eth_dev->data->nb_rx_queues)) { in sfc_intr_start()
179 sa->eth_dev->data->nb_rx_queues); in sfc_intr_start()
243 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(sa->eth_dev); in sfc_intr_stop()
[all …]

1234