MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nfp_net_ethdev_ops_mount

Function nfp_net_ethdev_ops_mount

dpdk/drivers/net/nfp/nfp_ethdev.c:605–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603};
604
605static inline void
606nfp_net_ethdev_ops_mount(struct nfp_net_hw *hw,
607 struct rte_eth_dev *eth_dev)
608{
609 if (hw->ver.extend == NFP_NET_CFG_VERSION_DP_NFD3)
610 eth_dev->tx_pkt_burst = nfp_net_nfd3_xmit_pkts;
611 else
612 eth_dev->tx_pkt_burst = nfp_net_nfdk_xmit_pkts;
613
614 eth_dev->dev_ops = &nfp_net_eth_dev_ops;
615 eth_dev->rx_queue_count = nfp_net_rx_queue_count;
616 eth_dev->rx_pkt_burst = &nfp_net_recv_pkts;
617}
618
619static int
620nfp_net_init(struct rte_eth_dev *eth_dev)

Callers 2

nfp_net_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected