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

Function ngbe_dev_configure

dpdk/drivers/net/ngbe/ngbe_ethdev.c:909–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909static int
910ngbe_dev_configure(struct rte_eth_dev *dev)
911{
912 struct ngbe_interrupt *intr = ngbe_dev_intr(dev);
913 struct ngbe_adapter *adapter = ngbe_dev_adapter(dev);
914
915 PMD_INIT_FUNC_TRACE();
916
917 if (dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG)
918 dev->data->dev_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH;
919
920 /* set flag to update link status after init */
921 intr->flags |= NGBE_FLAG_NEED_LINK_UPDATE;
922
923 /*
924 * Initialize to TRUE. If any of Rx queues doesn't meet the bulk
925 * allocation Rx preconditions we will reset it.
926 */
927 adapter->rx_bulk_alloc_allowed = true;
928
929 return 0;
930}
931
932static void
933ngbe_dev_phy_intr_setup(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 2

ngbe_dev_intrFunction · 0.85
ngbe_dev_adapterFunction · 0.85

Tested by

no test coverage detected