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 4AEE5A0524; Fri, 23 Apr 2021 14:58:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3E8A410E7; Fri, 23 Apr 2021 14:58:27 +0200 (CEST) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mails.dpdk.org (Postfix) with ESMTP id 7B535410D8 for ; Fri, 23 Apr 2021 14:58:26 +0200 (CEST) Received: by mail-ej1-f43.google.com with SMTP id w23so57981952ejb.9 for ; Fri, 23 Apr 2021 05:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nfware.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8iMh8b3Lxd6YjLvb37DVVPUPuBXwb3jtHX03ZgW+IQ4=; b=F5/K5SbC9H2Yl+xwoK/mzBzAt9Q5FYIzR+SbWjwMzeqpVfYvRF+tXIibeg6HRYGbOk YTo9Oi0FZd4TudvEn9QA3yGQF69G9ftX0Zn8Y2kDK+7FnFUHRvcXfiHE689NqZIyTIYh 5dxIuICLgHSllfqg34mW1ag02/juggNOdM3iMn/N750Eb35LCx4mo3aWU/4zn/81adGB HajCyqdYcqCpD52A36WI2/gdzcDMbYcBtWEnCCahgaJ/uTLXNYLurVk6iJnojvO79A3U f+eGWncfTCSuxYG8tKTVasfttbQHK17SZfeV2FldgYDr8E5mPNQUQmGYrISMWh53lF4A pqcw== 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=8iMh8b3Lxd6YjLvb37DVVPUPuBXwb3jtHX03ZgW+IQ4=; b=nU85QbNQI+6lWer5bAbl02iCYRXresz1hubFhBk5qssW41SC/fWjERRo6kLMqo3HlI nQOlRG0u327rKmCJICuEtpR59zHQ0rmvy17SCaSVYiIwbtHuWSKi4hI/bUJnr0FUf6Dd wwwubDbEvKHV/zfVLz8oBJQgZlAmkBw+dsJjELkH3hPsm1yUwpBogXZz0VzbF+oBBszk rf2S1ENGmyoY8w9GOkuayTEzqs8ZLGpAD05KIrrRHXniX6YXrMvANC4IdbblS2lGum+t XI42rCdF2p7hXzfFA3RPLMSGVad0E/zrudyESZnKM2MfGig3lc3CEpmQQTW/uTa+fS+X A30Q== X-Gm-Message-State: AOAM533CJAMSwvc+CfIccx82GLK67xImQ+1bbLgbGPMg2f1HT8/hDJK/ 9c+vCNgl21Fwkf0IZa3rnMo/+zGZLEeaPDXzvz8RuA== X-Google-Smtp-Source: ABdhPJxLNlwdgdquG9/vEMXy2oK7kdr7oKKrliKoJyKC20OGzamhddDCNMyAHLsWVQn27Csu+MCguXjNNQQObkxCZsc= X-Received: by 2002:a17:907:76c5:: with SMTP id kf5mr3997163ejc.526.1619182706079; Fri, 23 Apr 2021 05:58:26 -0700 (PDT) MIME-Version: 1.0 References: <20201126144613.4986-1-eladv6@gmail.com> <2345640.QMWomeNEm9@thomas> <599cc2f5-467a-a954-29be-e77e3b796784@intel.com> In-Reply-To: From: Igor Ryzhov Date: Fri, 23 Apr 2021 15:58:14 +0300 Message-ID: To: Ferruh Yigit Cc: Thomas Monjalon , Stephen Hemminger , Elad Nachman , dev , dpdk stable , Dan Gora Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v5 3/3] kni: fix kernel deadlock when using mlx devices 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 Sender: "dev" Sorry I remembered the problem with the deadlock. We can't just make the shutdown command synchronous, because we can't release the rtnl_lock anyway. So regardless of the process mode (sync/async), we have to preserve the lock when processing the shutdown. It looks like two different settings... On Fri, Apr 23, 2021 at 3:43 PM Igor Ryzhov wrote: > Hi Ferruh, > > Thanks. I think it would be great to make this configurable, and maybe even > make shutdown synchronous by default to preserve the old behavior. > > I would be grateful if you could spend time on the work and I am ready to > review it. > > Igor > > On Fri, Apr 23, 2021 at 11:59 AM Ferruh Yigit > wrote: > >> On 4/23/2021 9:41 AM, Igor Ryzhov wrote: >> > This patch changes the behavior for KNI interface shutdown. >> > Previously we would receive a real response from the driver, now we >> > always receive success. >> > I think this should be reflected in the docs/release notes. >> > >> >> Hi Igor, >> >> Make sense, I can add it. >> >> Meanwhile do you think has a benefit to make shutdown behavior >> configurable? >> Async/Sync shutdown based on module param? >> >> > Igor >> > >> > On Wed, Apr 21, 2021 at 2:07 AM Thomas Monjalon > > > wrote: >> > >> > 12/04/2021 16:35, Elad Nachman: >> > > Hi, >> > > >> > > The new patch is fine by me. >> > > >> > > Tested several dozens restarts of our proprietary application >> without >> > > apparent problem. >> > >> > Series applied, thanks. >> > >> > >> >>