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

Function ionic_lif_handle_fw_down

dpdk/drivers/net/ionic/ionic_lif.c:1323–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321}
1322
1323static void
1324ionic_lif_handle_fw_down(struct ionic_lif *lif)
1325{
1326 if (lif->state & IONIC_LIF_F_FW_RESET)
1327 return;
1328
1329 lif->state |= IONIC_LIF_F_FW_RESET;
1330
1331 if (lif->state & IONIC_LIF_F_UP) {
1332 IONIC_PRINT(NOTICE,
1333 "Surprise FW stop, stopping %s\n", lif->name);
1334 ionic_lif_stop(lif);
1335 }
1336
1337 IONIC_PRINT(NOTICE, "FW down, %s stopped", lif->name);
1338}
1339
1340static bool
1341ionic_notifyq_cb(struct ionic_cq *cq, uint16_t cq_desc_index, void *cb_arg)

Callers 1

ionic_notifyq_cbFunction · 0.85

Calls 1

ionic_lif_stopFunction · 0.85

Tested by

no test coverage detected