/** * i40iw_close - client interface operation close for iwarp/uda device * @cdev_info: parent lan device information structure with data/ops * @client: client to close * @reset: flag to indicate close on reset * * Called by the lan driver during the processing of client unregister * Destroy and clean up the driver resources
*/ staticvoid i40iw_close(struct i40e_info *cdev_info, struct i40e_client *client, bool reset)
{ struct irdma_device *iwdev; struct ib_device *ibdev;
ibdev = ib_device_get_by_netdev(cdev_info->netdev, RDMA_DRIVER_IRDMA); if (WARN_ON(!ibdev)) return;
iwdev = to_iwdev(ibdev); if (reset)
iwdev->rf->reset = true;
/** * i40iw_open - client interface operation open for iwarp/uda device * @cdev_info: parent lan device information structure with data/ops * @client: iwarp client information, provided during registration * * Called by the lan driver during the processing of client register * Create device resources, set up queues, pble and hmc objects and * register the device with the ib verbs interface * Return 0 if successful, otherwise return error
*/ staticint i40iw_open(struct i40e_info *cdev_info, struct i40e_client *client)
{ struct irdma_l2params l2params = {}; struct irdma_device *iwdev; struct irdma_pci_f *rf; int err = -EIO; int i;
u16 qset;
u16 last_qset = IRDMA_NO_QSET;
iwdev = ib_alloc_device(irdma_device, ibdev); if (!iwdev) return -ENOMEM;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.