Lines Matching refs:eth_dev

163 static int enicpmd_dev_tx_queue_setup(struct rte_eth_dev *eth_dev,  in enicpmd_dev_tx_queue_setup()  argument
170 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_setup()
180 eth_dev->data->dev_conf.txmode.offloads; in enicpmd_dev_tx_queue_setup()
181 eth_dev->data->tx_queues[queue_idx] = (void *)wq; in enicpmd_dev_tx_queue_setup()
192 static int enicpmd_dev_tx_queue_start(struct rte_eth_dev *eth_dev, in enicpmd_dev_tx_queue_start() argument
195 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_start()
204 static int enicpmd_dev_tx_queue_stop(struct rte_eth_dev *eth_dev, in enicpmd_dev_tx_queue_stop() argument
208 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_tx_queue_stop()
219 static int enicpmd_dev_rx_queue_start(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_start() argument
222 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_start()
231 static int enicpmd_dev_rx_queue_stop(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_stop() argument
235 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_stop()
280 static int enicpmd_dev_rx_queue_setup(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_setup() argument
288 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_setup()
295 eth_dev->data->rx_queues[queue_idx] = in enicpmd_dev_rx_queue_setup()
308 static int enicpmd_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) in enicpmd_vlan_offload_set() argument
310 struct enic *enic = pmd_priv(eth_dev); in enicpmd_vlan_offload_set()
315 offloads = eth_dev->data->dev_conf.rxmode.offloads; in enicpmd_vlan_offload_set()
326 static int enicpmd_dev_configure(struct rte_eth_dev *eth_dev) in enicpmd_dev_configure() argument
330 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_configure()
342 if (eth_dev->data->dev_conf.rxmode.mq_mode & ETH_MQ_RX_RSS_FLAG) in enicpmd_dev_configure()
343 eth_dev->data->dev_conf.rxmode.offloads |= in enicpmd_dev_configure()
347 enic->hw_ip_checksum = !!(eth_dev->data->dev_conf.rxmode.offloads & in enicpmd_dev_configure()
353 ret = enicpmd_vlan_offload_set(eth_dev, mask); in enicpmd_dev_configure()
369 static int enicpmd_dev_start(struct rte_eth_dev *eth_dev) in enicpmd_dev_start() argument
371 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_start()
383 static int enicpmd_dev_stop(struct rte_eth_dev *eth_dev) in enicpmd_dev_stop() argument
386 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stop()
395 rte_eth_linkstatus_set(eth_dev, &link); in enicpmd_dev_stop()
403 static int enicpmd_dev_close(struct rte_eth_dev *eth_dev) in enicpmd_dev_close() argument
405 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_close()
416 static int enicpmd_dev_link_update(struct rte_eth_dev *eth_dev, in enicpmd_dev_link_update() argument
420 return enic_link_update(eth_dev); in enicpmd_dev_link_update()
423 static int enicpmd_dev_stats_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_stats_get() argument
426 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stats_get()
432 static int enicpmd_dev_stats_reset(struct rte_eth_dev *eth_dev) in enicpmd_dev_stats_reset() argument
434 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_stats_reset()
440 static uint32_t speed_capa_from_pci_id(struct rte_eth_dev *eth_dev) in speed_capa_from_pci_id() argument
446 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in speed_capa_from_pci_id()
464 static int enicpmd_dev_info_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_info_get() argument
467 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_info_get()
518 device_info->speed_capa = speed_capa_from_pci_id(eth_dev); in enicpmd_dev_info_get()
567 static int enicpmd_dev_promiscuous_enable(struct rte_eth_dev *eth_dev) in enicpmd_dev_promiscuous_enable() argument
569 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_promiscuous_enable()
585 static int enicpmd_dev_promiscuous_disable(struct rte_eth_dev *eth_dev) in enicpmd_dev_promiscuous_disable() argument
587 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_promiscuous_disable()
602 static int enicpmd_dev_allmulticast_enable(struct rte_eth_dev *eth_dev) in enicpmd_dev_allmulticast_enable() argument
604 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_allmulticast_enable()
619 static int enicpmd_dev_allmulticast_disable(struct rte_eth_dev *eth_dev) in enicpmd_dev_allmulticast_disable() argument
621 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_allmulticast_disable()
636 static int enicpmd_add_mac_addr(struct rte_eth_dev *eth_dev, in enicpmd_add_mac_addr() argument
640 struct enic *enic = pmd_priv(eth_dev); in enicpmd_add_mac_addr()
649 static void enicpmd_remove_mac_addr(struct rte_eth_dev *eth_dev, uint32_t index) in enicpmd_remove_mac_addr() argument
651 struct enic *enic = pmd_priv(eth_dev); in enicpmd_remove_mac_addr()
661 static int enicpmd_set_mac_addr(struct rte_eth_dev *eth_dev, in enicpmd_set_mac_addr() argument
664 struct enic *enic = pmd_priv(eth_dev); in enicpmd_set_mac_addr()
686 static int enicpmd_set_mc_addr_list(struct rte_eth_dev *eth_dev, in enicpmd_set_mc_addr_list() argument
690 struct enic *enic = pmd_priv(eth_dev); in enicpmd_set_mc_addr_list()
769 static int enicpmd_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu) in enicpmd_mtu_set() argument
771 struct enic *enic = pmd_priv(eth_dev); in enicpmd_mtu_set()
963 static int enicpmd_dev_rx_queue_intr_enable(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_intr_enable() argument
966 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_intr_enable()
973 static int enicpmd_dev_rx_queue_intr_disable(struct rte_eth_dev *eth_dev, in enicpmd_dev_rx_queue_intr_disable() argument
976 struct enic *enic = pmd_priv(eth_dev); in enicpmd_dev_rx_queue_intr_disable()
1009 static int enicpmd_dev_udp_tunnel_port_add(struct rte_eth_dev *eth_dev, in enicpmd_dev_udp_tunnel_port_add() argument
1012 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()
1056 static int enicpmd_dev_fw_version_get(struct rte_eth_dev *eth_dev, in enicpmd_dev_fw_version_get() argument
1066 enic = pmd_priv(eth_dev); in enicpmd_dev_fw_version_get()
1229 static int eth_enic_dev_init(struct rte_eth_dev *eth_dev, in eth_enic_dev_init() argument
1234 struct enic *enic = pmd_priv(eth_dev); in eth_enic_dev_init()
1238 eth_dev->dev_ops = &enicpmd_eth_dev_ops; in eth_enic_dev_init()
1239 eth_dev->rx_queue_count = enicpmd_dev_rx_queue_count; in eth_enic_dev_init()
1240 eth_dev->rx_pkt_burst = &enic_recv_pkts; in eth_enic_dev_init()
1241 eth_dev->tx_pkt_burst = &enic_xmit_pkts; in eth_enic_dev_init()
1242 eth_dev->tx_pkt_prepare = &enic_prep_pkts; in eth_enic_dev_init()
1244 enic_pick_tx_handler(eth_dev); in eth_enic_dev_init()
1245 enic_pick_rx_handler(eth_dev); in eth_enic_dev_init()
1249 enic->port_id = eth_dev->data->port_id; in eth_enic_dev_init()
1250 enic->rte_dev = eth_dev; in eth_enic_dev_init()
1251 enic->dev_data = eth_dev->data; in eth_enic_dev_init()
1253 pdev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_enic_dev_init()
1254 rte_eth_copy_pci_info(eth_dev, pdev); in eth_enic_dev_init()
1255 eth_dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS; in eth_enic_dev_init()
1262 err = enic_check_devargs(eth_dev); in eth_enic_dev_init()
1274 static int eth_enic_dev_uninit(struct rte_eth_dev *eth_dev) in eth_enic_dev_uninit() argument
1276 struct enic *enic = pmd_priv(eth_dev); in eth_enic_dev_uninit()
1280 eth_dev->device = NULL; in eth_enic_dev_uninit()
1281 eth_dev->intr_handle = NULL; in eth_enic_dev_uninit()