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 B33D2A00BE; Mon, 20 Dec 2021 15:08:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4640540040; Mon, 20 Dec 2021 15:08:34 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 252AE4003C for ; Mon, 20 Dec 2021 15:08:33 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id iy13so4036588pjb.5 for ; Mon, 20 Dec 2021 06:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lMhmx9P0H3NzNqld5sizIedz63e0Xjxi7c5EVwRina0=; b=FnHlPDCf6sXNObgsodEmo+Qq7wW0l7j4nziIoW9dxGvLv82qxK10dPsFOnvplPKx4s 5GL9Wsbu3FE0ZJY3F0nKikyKzQnFrchmG8IpvzKEsuZX3FRXgHOzs7GH7jCs9bwkwbGi yEe05k8NJBbPzTBq7mtsOflFipfMGA1GCN0xw1P/iFZ13zvewUr6B7X2R7IByw3NWu+K EmC3R1AZT+2JAmx+rF5LBa0FvV96BSLFrXP2Eln8oSIGjlSnvvRetNUQeQlN0Unl52E1 84Zr6FQi8bFCEO8frujnoZe+2gJ2GSxI/XeAq4fZ9plVoJcw+FVX28ZCdQpAREKKYsY6 k6/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lMhmx9P0H3NzNqld5sizIedz63e0Xjxi7c5EVwRina0=; b=6F5lrpEsKhb532kJfuex0hZFiJENqypzQhKWW40672ghXL7GJsCFAXo4PJCpZ9HUKu o6QjAbAKxtNE7cqArPO71Dg5Qmto7AtY7i8SANDFaVN4maMO23fqLvNJKBcDMv9td087 +y21Azea5GBC9xrEHkgPB7ikFsaaaIvTmXgY8053P4dMYoYAcAje2uBPCwrh0vySXyzm LD67P1yHBq75R5nWRiWwVGoMvzT/Lvs7fpjRsh0vRcZftKhwAQtd+m3dzZa0TOgGDPEm e34u5/jM6qCwR+v3gtc4lDTD/7t+cLeScSljYQft5+IhwVdKnQVwKxRVd04evlT3u+QL jiZQ== X-Gm-Message-State: AOAM530seLDSyZn3SEul7/KnhntHHo7OQ2BDyai1MlCzR2H5JXP3OGIG XHBAIZDHP2tDVVstynKK6XU+g8fFPYInQEDzd7HYIxRBB5O+7Q== X-Google-Smtp-Source: ABdhPJx3YiYegicNyakeMFJsaePbKCPEHW8FhzV872dnpFzVQKwSBRcvVoz4f+zVqUsoelboWXAmpDqUMgh2W6Ph0Ls= X-Received: by 2002:a17:90b:3447:: with SMTP id lj7mr28564464pjb.112.1640009312257; Mon, 20 Dec 2021 06:08:32 -0800 (PST) MIME-Version: 1.0 References: <20211220124100.1307675-1-baymaxhuang@gmail.com> <20211220124929.1309369-1-baymaxhuang@gmail.com> In-Reply-To: <20211220124929.1309369-1-baymaxhuang@gmail.com> From: Harold Huang Date: Mon, 20 Dec 2021 22:08:21 +0800 Message-ID: Subject: Fwd: [PATCH v2] net/virtio: unregister virtio user memory event to fix memory leak problem To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com Content-Type: text/plain; charset="UTF-8" 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 The problem which this patch wants to solve can be reproduced via ovs 2.16: 1. add a port with an invalid speed parameter: ovs-vsctl add-port ovs-br0 virtiouser0 -- set Interface virtiouser0 type=dpdk options:dpdk-devargs=virtio_user0,path=/dev/vhost-net,queue_size=1024,queues=1,speed=1000 2. delete the failed virtiouser0 port: ovs-vsctl del-port virtiouser0 3. add a new port with valid parameters: ovs-vsctl add-port ovs-br0 virtiouser0 -- set Interface virtiouser0 type=dpdk options:dpdk-devargs=virtio_user0,path=/dev/vhost-net,queue_size=1024,queues=1 The newly added port is always failed because of an existing memory event error.