From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id EE9F71B294 for ; Fri, 6 Oct 2017 10:40:17 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id 131so4597671wmk.3 for ; Fri, 06 Oct 2017 01:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=bxcFpFxSprZ48Zipbg8+sMJR9YA378K11KJFGo0rH4E=; b=IdyBS4qh8OULkDoyNLHz6Tck1wYS4sDpA+1iKOi4x3xKtfuNLcT9Q7BeYbFRBV2nzo zTz4+B9/dFxzyMp8gX+G4KehAup9ynpVuCq3Sg9hVEZq/1WP3NcKK+iFSoEmM7mmetv1 w359iiyyn+UxfgW41FD3S7lLWOJwvx0TDZgAiujoMaF0Bw1TFzNPi/cAGnSR5u5IXuHg gYVrpGPZSI9W9PEOMGs6dx8W6aWu+DBQ6dLNX7h1AirsB2M44ETDSMoyNevIhovIubVa PrT404WivkNip5c+I1gnV8e2uut6JRCLRbTFD9zlD5PQ6GyggqzG0TilSOczlAedITGz uFmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=bxcFpFxSprZ48Zipbg8+sMJR9YA378K11KJFGo0rH4E=; b=gCJNvMqWB0sSHSX0ZgYkg2pr/RNafbK9h4rauBQFdvbKA+/5Q4AzB39dHnTfiQGryk q1hsjjzv9blyZ8k/FfZDVqa8F0sNn0CqJataChnmQwQYCNPUW4SII3idaHL9M3ujGjj6 8EKtxCFB9uu+BlKt13Xj4DuvQ7o65cOWwm9aLZvaN8dqA3bLc0W2P14ombT6XfMLDrfM fYtW5nOKfuqb+TE7UV8VsSWu6Y38GzZcxlIym8EPeYgPJlg6FaTfbGdVCLS7yMvirvyE 5WvfvrZG0ZqP8w+1FdWsxP9pCtwY5z1HOhfdfVRCXmL9M4EQaxiEY1Si52K7Vu8/yFYs 50xA== X-Gm-Message-State: AMCzsaXOlA9Ng9XrQCvjk8Os/a5zVYUjYKMTacBhM0vqu33z56MveYZc uV5SxzI33GjZ7++TNQQChnLSC2PEOR4= X-Google-Smtp-Source: AOwi7QBlJRgnLIIoAOsIywJbIt5UUV6+08+Ep5UgzzU4P8JoRIfxhMdGFsJR0f3AKIb1kxFISy4r7w== X-Received: by 10.80.170.107 with SMTP id p40mr2304976edc.303.1507279217562; Fri, 06 Oct 2017 01:40:17 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id e2sm622871edi.65.2017.10.06.01.40.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 06 Oct 2017 01:40:16 -0700 (PDT) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: declan.doherty@intel.com, pablo.de.lara.guarch@intel.com Date: Fri, 6 Oct 2017 10:39:32 +0200 Message-Id: <20171006083934.34819-3-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20171006083934.34819-1-jblunck@infradead.org> References: <20171006083934.34819-1-jblunck@infradead.org> In-Reply-To: <20170712195846.65286-1-jblunck@infradead.org> References: <20170712195846.65286-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v3 2/4] cryptodev: move initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 08:40:18 -0000 Signed-off-by: Jan Blunck --- lib/librte_cryptodev/rte_cryptodev.c | 3 +++ lib/librte_cryptodev/rte_cryptodev_pmd.c | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 327d7e846..5e8f7f4fe 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -583,6 +583,9 @@ rte_cryptodev_pmd_allocate(const char *name, int socket_id) cryptodev->data->socket_id = socket_id; cryptodev->data->dev_started = 0; + /* init user callbacks */ + TAILQ_INIT(&(cryptodev->link_intr_cbs)); + cryptodev->attached = RTE_CRYPTODEV_ATTACHED; cryptodev_globals.nb_devs++; diff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.c b/lib/librte_cryptodev/rte_cryptodev_pmd.c index a57faadcf..ec6eeffa1 100644 --- a/lib/librte_cryptodev/rte_cryptodev_pmd.c +++ b/lib/librte_cryptodev/rte_cryptodev_pmd.c @@ -101,9 +101,6 @@ rte_cryptodev_vdev_pmd_init(const char *name, size_t dev_private_size, cryptodev->device = &vdev->device; - /* initialise user call-back tail queue */ - TAILQ_INIT(&(cryptodev->link_intr_cbs)); - return cryptodev; } @@ -188,9 +185,6 @@ rte_cryptodev_pci_generic_probe(struct rte_pci_device *pci_dev, cryptodev->device = &pci_dev->device; - /* init user callbacks */ - TAILQ_INIT(&(cryptodev->link_intr_cbs)); - /* Invoke PMD device initialization function */ RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL); retval = dev_init(cryptodev); -- 2.13.2