/* Add the client to the client list, and call backs the client for each activated offload device  */
void cxgb3_register_client(struct cxgb3_client *client)
/* Add the client to the client list, and call backs the client for each activated offload device  */
void cxgb3_register_client(struct cxgb3_client *client)
{
	struct t3cdev *tdev;
	mutex_lock(&cxgb3_db_lock);
	list_add_tail(&client->client_list, &client_list);
	if (client->add) {
		list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) {
			if (offload_activated(tdev))
				client->add(tdev);
		}
	}
	mutex_unlock(&cxgb3_db_lock);
}