From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5EC37A04C4 for ; Wed, 20 Nov 2019 23:52:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0E117235; Wed, 20 Nov 2019 23:52:42 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 9A4C4235 for ; Wed, 20 Nov 2019 23:52:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574290360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xewBBl2n7KPs8aK9bibMY1qzmkpvXbktYekUyGzsjMg=; b=cFoOYlSSZ8MYS0ddLAFN8q2bz04ARQTIhClF34NXfsJ5YmeUuSyB8ugm1Uv6LKvHn2DCdv +hv2x1N/49mXbv2/G6bt/pLgcLOVTW8a6kgnZjKgKhIoc1/YIItxxoLqiPj26bYDWXwekh Hfm9SsQUQgHhpEslNJUhngvkgL1heiY= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-300-KHEjRBPXMIWuqir2PQBg_w-1; Wed, 20 Nov 2019 17:52:39 -0500 Received: by mail-vk1-f198.google.com with SMTP id c5so517196vkm.12 for ; Wed, 20 Nov 2019 14:52:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xewBBl2n7KPs8aK9bibMY1qzmkpvXbktYekUyGzsjMg=; b=FgND1EZi6XnKHcXUnZ60sb8TpueXrWYoeagwl9+oNl9omMCXvxYZyfD6okFEzXzA6/ A6XdBMYbBHZWPz2QLRB7ec5v+eMjC0aQhjEr06jbpORXnpCaHTmhI4O+1TrVs3ijdPOI Xf0yHTqqhw2YKrRJutIpqwVh96daNraktMAYNd6X9sH0iGfcDQ/Qj0Qwbz9auxe8Gtxv NRtEYbAXWUuuOvgcXQda341SrSp++jSvvqlcf0tMoTm6ZaYCUiNztWmbYV/31qi/v88m CIdmyzOeNJE1ngmfjNUMqyRhVU1RTtLQr5g72ogVpUShWfZ9i5H7If3FxOjYM6vIgor+ 5omQ== X-Gm-Message-State: APjAAAWYMI2+NX1qWdukAJg1soNI5vOuFj3czLZ9LxRnhTlAGyED+hCM fbbPyWkIpDxQUzwZbTuW8L/J9LOJ8o+NjOvIsXTndvRnBngpA+XBC/qk9e/6VVbLDs2Z298+1Cg C6zyzz+2LfNKghsgG63ikWTo= X-Received: by 2002:a1f:60ce:: with SMTP id u197mr3517910vkb.80.1574290358751; Wed, 20 Nov 2019 14:52:38 -0800 (PST) X-Google-Smtp-Source: APXvYqx0ESlMZuPnFMfb7rpLtatgR6FINBTH0Ou1XDkn6G4K+Pw1V+eomoX4oylkyqxQ5xLoK20KTnF0sf45+Z1wMrE= X-Received: by 2002:a1f:60ce:: with SMTP id u197mr3517888vkb.80.1574290358351; Wed, 20 Nov 2019 14:52:38 -0800 (PST) MIME-Version: 1.0 References: <1573548459-6931-1-git-send-email-matan@mellanox.com> <1574243271-27734-1-git-send-email-matan@mellanox.com> In-Reply-To: <1574243271-27734-1-git-send-email-matan@mellanox.com> From: David Marchand Date: Wed, 20 Nov 2019 23:52:27 +0100 Message-ID: To: Matan Azrad Cc: dev , dpdk stable , Thomas Monjalon X-MC-Unique: KHEjRBPXMIWuqir2PQBg_w-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH v2] bus/pci: fix driver detach clear X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, Nov 20, 2019 at 10:48 AM Matan Azrad wrote: > > When a rte_device is unplugged, the driver should be detached from the > device. > > The PCI detach driver operation wrongly didn't clear the driver from the > device structure what remain the device in probe state from the EAL > point of view. > > For example, when a device is removed twice using rte_dev_remove, it > cause a crash in EAL. > > Clear the driver in driver detach successful operation. > > Signed-off-by: Matan Azrad Acked-by: Thomas Monjalon Applied with updated commitlog. Thanks. -- David Marchand