Lines Matching refs:eth_dev

145 static int enicpmd_dev_tx_queue_setup(struct rte_eth_dev *eth_dev,  in enicpmd_dev_tx_queue_setup()  argument
152 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_setup()
162 eth_dev->data->dev_conf.txmode.offloads; in enicpmd_dev_tx_queue_setup()
163 eth_dev->data->tx_queues[queue_idx] = (void *)wq; in enicpmd_dev_tx_queue_setup()
174 static int enicpmd_dev_tx_queue_start(struct rte_eth_dev *eth_dev, in enicpmd_dev_tx_queue_start() argument
177 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_start()
186 static int enicpmd_dev_tx_queue_stop(struct rte_eth_dev *eth_dev, in enicpmd_dev_tx_queue_stop() argument
190 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_stop()
201 static int enicpmd_dev_rx_queue_start(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_start() argument
204 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_start()
213 static int enicpmd_dev_rx_queue_stop(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_stop() argument
217 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_stop()
264 static int enicpmd_dev_rx_queue_setup(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_setup() argument
272 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_setup()
279 eth_dev->data->rx_queues[queue_idx] = in enicpmd_dev_rx_queue_setup()
292 static int enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) in enicpmd_vlan_offload_set() argument
294 struct enic *enic = pmd_priv(eth_dev); in enicpmd_vlan_offload_set()
299 offloads = eth_dev->data->dev_conf.rxmode.offloads; in enicpmd_vlan_offload_set()
310 static int enicpmd_dev_configure(struct rte_eth_dev *eth_dev) in enicpmd_dev_configure() argument
314 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_configure()
326 if (eth_dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG) in enicpmd_dev_configure()
327 eth_dev->data->dev_conf.rxmode.offloads |= in enicpmd_dev_configure()
331 enic->hw_ip_checksum = !!(eth_dev->data->dev_conf.rxmode.offloads & in enicpmd_dev_configure()
337 ret = enicpmd_vlan_offload_set(eth_dev, mask); in enicpmd_dev_configure()
353 static int enicpmd_dev_start(struct rte_eth_dev *eth_dev) in enicpmd_dev_start() argument
355 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_start()
367 static int enicpmd_dev_stop(struct rte_eth_dev *eth_dev) in enicpmd_dev_stop() argument
370 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stop()
379 rte_eth_linkstatus_set(eth_dev, &link); in enicpmd_dev_stop()
387 static int enicpmd_dev_close(struct rte_eth_dev *eth_dev) in enicpmd_dev_close() argument
389 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_close()
400 static int enicpmd_dev_link_update(struct rte_eth_dev *eth_dev, in enicpmd_dev_link_update() argument
404 return enic_link_update(eth_dev); in enicpmd_dev_link_update()
407 static int enicpmd_dev_stats_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_stats_get() argument
410 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stats_get()
416 static int enicpmd_dev_stats_reset(struct rte_eth_dev *eth_dev) in enicpmd_dev_stats_reset() argument
418 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stats_reset()
424 static uint32_t speed_capa_from_pci_id(struct rte_eth_dev *eth_dev) in speed_capa_from_pci_id() argument
430 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in speed_capa_from_pci_id()
448 static int enicpmd_dev_info_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_info_get() argument
451 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_info_get()
503 device_info->speed_capa = speed_capa_from_pci_id(eth_dev); in enicpmd_dev_info_get()
552 static int enicpmd_dev_promiscuous_enable(struct rte_eth_dev *eth_dev) in enicpmd_dev_promiscuous_enable() argument
554 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_promiscuous_enable()
570 static int enicpmd_dev_promiscuous_disable(struct rte_eth_dev *eth_dev) in enicpmd_dev_promiscuous_disable() argument
572 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_promiscuous_disable()
587 static int enicpmd_dev_allmulticast_enable(struct rte_eth_dev *eth_dev) in enicpmd_dev_allmulticast_enable() argument
589 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_allmulticast_enable()
604 static int enicpmd_dev_allmulticast_disable(struct rte_eth_dev *eth_dev) in enicpmd_dev_allmulticast_disable() argument
606 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_allmulticast_disable()
621 static int enicpmd_add_mac_addr(struct rte_eth_dev *eth_dev, in enicpmd_add_mac_addr() argument
625 struct enic *enic = pmd_priv(eth_dev); in enicpmd_add_mac_addr()
634 static void enicpmd_remove_mac_addr(struct rte_eth_dev *eth_dev, uint32_t index) in enicpmd_remove_mac_addr() argument
636 struct enic *enic = pmd_priv(eth_dev); in enicpmd_remove_mac_addr()
646 static int enicpmd_set_mac_addr(struct rte_eth_dev *eth_dev, in enicpmd_set_mac_addr() argument
649 struct enic *enic = pmd_priv(eth_dev); in enicpmd_set_mac_addr()
671 static int enicpmd_set_mc_addr_list(struct rte_eth_dev *eth_dev, in enicpmd_set_mc_addr_list() argument
675 struct enic *enic = pmd_priv(eth_dev); in enicpmd_set_mc_addr_list()
754 static int enicpmd_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) in enicpmd_mtu_set() argument
756 struct enic *enic = pmd_priv(eth_dev); in enicpmd_mtu_set()
950 static int enicpmd_dev_rx_queue_intr_enable(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_intr_enable() argument
953 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_intr_enable()
960 static int enicpmd_dev_rx_queue_intr_disable(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_intr_disable() argument
963 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_intr_disable()
1002 static int enicpmd_dev_udp_tunnel_port_add(struct rte_eth_dev *eth_dev, in enicpmd_dev_udp_tunnel_port_add() argument
1005 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_udp_tunnel_port_add()
1031 static int enicpmd_dev_udp_tunnel_port_del(struct rte_eth_dev *eth_dev, in enicpmd_dev_udp_tunnel_port_del() argument
1034 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_udp_tunnel_port_del()
1064 static int enicpmd_dev_fw_version_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_fw_version_get() argument
1073 enic = pmd_priv(eth_dev); in enicpmd_dev_fw_version_get()
1242 static int eth_enic_dev_init(struct rte_eth_dev *eth_dev, in eth_enic_dev_init() argument
1247 struct enic *enic = pmd_priv(eth_dev); in eth_enic_dev_init()
1251 eth_dev->dev_ops = &enicpmd_eth_dev_ops; in eth_enic_dev_init()
1252 eth_dev->rx_queue_count = enicpmd_dev_rx_queue_count; in eth_enic_dev_init()
1253 eth_dev->rx_pkt_burst = &enic_recv_pkts; in eth_enic_dev_init()
1254 eth_dev->tx_pkt_burst = &enic_xmit_pkts; in eth_enic_dev_init()
1255 eth_dev->tx_pkt_prepare = &enic_prep_pkts; in eth_enic_dev_init()
1257 enic_pick_tx_handler(eth_dev); in eth_enic_dev_init()
1258 enic_pick_rx_handler(eth_dev); in eth_enic_dev_init()
1262 enic->port_id = eth_dev->data->port_id; in eth_enic_dev_init()
1263 enic->rte_dev = eth_dev; in eth_enic_dev_init()
1264 enic->dev_data = eth_dev->data; in eth_enic_dev_init()
1266 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_enic_dev_init()
1267 rte_eth_copy_pci_info(eth_dev, pdev); in eth_enic_dev_init()
1274 err = enic_check_devargs(eth_dev); in eth_enic_dev_init()
1286 static int eth_enic_dev_uninit(struct rte_eth_dev *eth_dev) in eth_enic_dev_uninit() argument
1288 struct enic *enic = pmd_priv(eth_dev); in eth_enic_dev_uninit()
1292 eth_dev->device = NULL; in eth_enic_dev_uninit()
1293 eth_dev->intr_handle = NULL; in eth_enic_dev_uninit()