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

Function ionic_port_reset

dpdk/drivers/net/ionic/ionic_main.c:511–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511int
512ionic_port_reset(struct ionic_adapter *adapter)
513{
514 struct ionic_dev *idev = &adapter->idev;
515 int err;
516
517 if (!idev->port_info)
518 return 0;
519
520 ionic_dev_cmd_port_reset(idev);
521 err = ionic_dev_cmd_wait_check(idev, IONIC_DEVCMD_TIMEOUT);
522 if (err) {
523 IONIC_PRINT(ERR, "Failed to reset port");
524 return err;
525 }
526
527 idev->port_info = NULL;
528 idev->port_info_pa = 0;
529
530 return 0;
531}

Callers 1

ionic_dev_closeFunction · 0.85

Calls 2

ionic_dev_cmd_port_resetFunction · 0.85
ionic_dev_cmd_wait_checkFunction · 0.85

Tested by

no test coverage detected