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

Function cxgbe_up

dpdk/drivers/net/cxgbe/cxgbe_main.c:2098–2108  ·  view source on GitHub ↗

* cxgb_up - enable the adapter * @adap: adapter being enabled * * Called when the first port is enabled, this function performs the * actions necessary to make an adapter operational, such as completing * the initialization of HW modules, and enabling interrupts. */

Source from the content-addressed store, hash-verified

2096 * the initialization of HW modules, and enabling interrupts.
2097 */
2098int cxgbe_up(struct adapter *adap)
2099{
2100 enable_rx(adap, &adap->sge.fw_evtq);
2101 t4_sge_tx_monitor_start(adap);
2102 if (is_pf4(adap))
2103 t4_intr_enable(adap);
2104 adap->flags |= FULL_INIT_DONE;
2105
2106 /* TODO: deadman watchdog ?? */
2107 return 0;
2108}
2109
2110/*
2111 * Close the port

Callers 1

cxgbe_dev_startFunction · 0.85

Calls 4

enable_rxFunction · 0.85
t4_sge_tx_monitor_startFunction · 0.85
is_pf4Function · 0.85
t4_intr_enableFunction · 0.85

Tested by

no test coverage detected