From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 06B2A462E7; Fri, 28 Feb 2025 14:48:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9E9F40ED2; Fri, 28 Feb 2025 14:48:06 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 7FCAA40E48; Fri, 28 Feb 2025 14:48:05 +0100 (CET) Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51SCc21S005330; Fri, 28 Feb 2025 05:48:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=D uOus+kblO3E0kLXqz2O6ZZ/hYF/aOY2AkpaUXU0yco=; b=I4mnVfXdfJ6NMjoXS qo25VS2mcqWtLk+mcBd4IXcowT2dfkeMej1pk+O9fjqECEp6ONO1o/R1BMYeH/uh czBa510eLmbd1zA3HRajc5/AcswoEmMrct1HSnByrEZvdRqeMBexC9nCOau3fH98 R9iaxVOHQOrhHhQowdNbyRL9GdHzsFIHPgkotuHkXsMs87DghmnzVU5DkxIVWC8+ 9z6zQFxDY+colR/W1fNrU2G0NAgGp9ad7eUi3mzNjE4B9ZRM+UNavwKcvoAUMn30 JXx4wr3oguZuD2DU8lXRSFsYGti1VnnrFCfPlTs3N2uTf9jP+yIRvg3gBju9kPDS 6aZ2Q== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 453bgw887b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Feb 2025 05:48:04 -0800 (PST) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 28 Feb 2025 05:48:03 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 28 Feb 2025 05:48:03 -0800 Received: from IN-lckQE5Rwctls.marvell.com (unknown [10.28.163.68]) by maili.marvell.com (Postfix) with ESMTP id 490D95B692E; Fri, 28 Feb 2025 05:48:00 -0800 (PST) From: Gowrishankar Muthukrishnan To: , , Chenbo Xia , Jay Zhou , Fan Zhang CC: , Akhil Goyal , David Marchand , Gowrishankar Muthukrishnan , Subject: [v9 4/6] examples/vhost_crypto: fix user callbacks Date: Fri, 28 Feb 2025 19:17:11 +0530 Message-ID: <5c03086ed2c8a3310dfaa22973472b027f96c4d5.1740749809.git.gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Authority-Analysis: v=2.4 cv=ZMQtmW7b c=1 sm=1 tr=0 ts=67c1be94 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=T2h4t0Lz3GQA:10 a=8rWy6zfcAAAA:8 a=M5GUcnROAAAA:8 a=cGNggxaUmQD6pPA5iYsA:9 a=YjdVzJdQTyZRADMV7wFX:22 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-ORIG-GUID: -H3V2fctWRye8LUjFMVi0o_qBhKmcAHg X-Proofpoint-GUID: -H3V2fctWRye8LUjFMVi0o_qBhKmcAHg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-28_03,2025-02-27_01,2024-11-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In order to handle new vhost user connection, use new_connection and destroy_connection callbacks. Fixes: f5188211c721 ("examples/vhost_crypto: add sample application") Cc: stable@dpdk.org Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Akhil Goyal --- examples/vhost_crypto/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c index 558c09a60f..b1fe4120b9 100644 --- a/examples/vhost_crypto/main.c +++ b/examples/vhost_crypto/main.c @@ -362,8 +362,8 @@ destroy_device(int vid) } static const struct rte_vhost_device_ops virtio_crypto_device_ops = { - .new_device = new_device, - .destroy_device = destroy_device, + .new_connection = new_device, + .destroy_connection = destroy_device, }; static int -- 2.25.1