Message ID | 20230315173132.4044-1-stephen@networkplumber.org (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9909541EA2; Wed, 15 Mar 2023 18:31:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D1C740EE4; Wed, 15 Mar 2023 18:31:37 +0100 (CET) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 1E7A140141 for <dev@dpdk.org>; Wed, 15 Mar 2023 18:31:36 +0100 (CET) Received: by mail-pj1-f49.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so2659504pjt.2 for <dev@dpdk.org>; Wed, 15 Mar 2023 10:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678901495; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3XWRhWr1tcN07PIKf+xK7MdBQxm5Mm6S4WifX5ryr60=; b=dilONLe2/UloDixl9/NFOMljVfnUmWbcw7HxIstIyZ3V+LPzDdsKbhJFosYNIzzljJ hxh1kRZm6/Zh2X/vuXVb9s24nmeoYHhlzJnTiY/JMtDo0BQObwR4YWP+G84Z3nxL+2Gd 6yIrMj9kNsDweRgtwBlryqN5xcFqmPmQG9uWVVo+HXqK67IH+afcSfJHrhaf9/d8jiuo s7VHg+Ip3mGN8ubsnX5LBsTAUxTE6CDcmFNYAhtfy794C/89RZdAUh/dExsXGup+JsnL /pjdwYPWplxyrdMaim4U+iFFKm5hWYL/m0ZFTtjaA+XYM1zX0kTR2mwCt3oFZLuhXrSI mfyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678901495; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3XWRhWr1tcN07PIKf+xK7MdBQxm5Mm6S4WifX5ryr60=; b=gjjIhJTIo/4Om/lungVrkgf2lxCCpcmP+UuPbDPUqLxrMnU6/u5v5yQ/CWNVhVm9Zd fpiEI+PzgIdBpAbrD2m8XPkkqmp0/nAvI7Y12ZOpyQuYBzWrXDtmOkk4YndWz7WmpmSH NJiKTh40BNxhUJ7BSpdo4K8FgyktaEc4LsZD2ZxqCgYws5e/51EacHGNRsWnrwU5F4yJ iYYu+zfUHWwpsBHwQgNTRAxFKy8RvPzZrloVVLobys0zB1jbWHujurQVoydGtnJDNt9t GMJWtPZnFzte3EMPcDKVRNS1yfXlkGmxVa6+bbGB2t71FVpZRWnwAbcW6oLKj72QiOiM lrCA== X-Gm-Message-State: AO0yUKWCCgPKoFRk0j3wdKoD8VyzqAxFx50Sbglpjl1w1Q9e6wdAWQbO eRisjDHGtWJnaeCajaX6CF37RF1tpBD1ovD4nNdS1A== X-Google-Smtp-Source: AK7set9Oqp4uzN8gPoTTcGBB6leXXUd+GwctGepqIEMwObADgaHu3S9p6wgY8yVLL3o9+CvQcoojxg== X-Received: by 2002:a05:6a20:1e5b:b0:d6:5dc3:a468 with SMTP id cy27-20020a056a201e5b00b000d65dc3a468mr484854pzb.38.1678901495048; Wed, 15 Mar 2023 10:31:35 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id s5-20020aa78285000000b005d296facfa3sm3803256pfm.36.2023.03.15.10.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 10:31:34 -0700 (PDT) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org> Subject: [PATCH v4 0/2] Fix testpmd interrupt regression Date: Wed, 15 Mar 2023 10:31:30 -0700 Message-Id: <20230315173132.4044-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313171905.67720-1-stephen@networkplumber.org> References: <20230313171905.67720-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Fix testpmd interrupt regression
|
|
Message
Stephen Hemminger
March 15, 2023, 5:31 p.m. UTC
Resolve issues from using control-C in testpmd. Fixes regression from recent change to use cmdline_poll(). v4 - drop sig_atomic_t. Not required requires changes on some platforms. Stephen Hemminger (2): testpmd: go back to using cmdline_interact testpmd: enable interrupt in interactive mode app/test-pmd/cmdline.c | 27 ++++++++++++++------------- app/test-pmd/testpmd.c | 11 +++++++++++ lib/cmdline/cmdline.h | 10 ++++++++++ lib/cmdline/cmdline_os_unix.c | 8 +++++++- lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- lib/cmdline/cmdline_private.h | 2 +- lib/cmdline/version.map | 3 +++ 7 files changed, 62 insertions(+), 17 deletions(-)
Comments
> External email: Use caution opening links or attachments > > > Resolve issues from using control-C in testpmd. > Fixes regression from recent change to use cmdline_poll(). > > v4 - drop sig_atomic_t. Not required requires changes on > some platforms. > > Stephen Hemminger (2): > testpmd: go back to using cmdline_interact > testpmd: enable interrupt in interactive mode > > app/test-pmd/cmdline.c | 27 ++++++++++++++------------- > app/test-pmd/testpmd.c | 11 +++++++++++ > lib/cmdline/cmdline.h | 10 ++++++++++ > lib/cmdline/cmdline_os_unix.c | 8 +++++++- > lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- > lib/cmdline/cmdline_private.h | 2 +- > lib/cmdline/version.map | 3 +++ > 7 files changed, 62 insertions(+), 17 deletions(-) > > -- > 2.39.2 Confirming that this patch fixes Bug: 1180 over Windows. And CTRL-C works as expected. Tested-by: Pier Damouny <pdamouny@nvidia.com>
On 3/15/2023 5:31 PM, Stephen Hemminger wrote: > Resolve issues from using control-C in testpmd. > Fixes regression from recent change to use cmdline_poll(). > > v4 - drop sig_atomic_t. Not required requires changes on > some platforms. > > Stephen Hemminger (2): > testpmd: go back to using cmdline_interact > testpmd: enable interrupt in interactive mode > > app/test-pmd/cmdline.c | 27 ++++++++++++++------------- > app/test-pmd/testpmd.c | 11 +++++++++++ > lib/cmdline/cmdline.h | 10 ++++++++++ > lib/cmdline/cmdline_os_unix.c | 8 +++++++- > lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- > lib/cmdline/cmdline_private.h | 2 +- > lib/cmdline/version.map | 3 +++ > 7 files changed, 62 insertions(+), 17 deletions(-) > This solution is adding new cmdline API for -rc3 and there are some testpmd changes, can it be possible to have a simple workaround specific to window for this release and get this set for next release?
On Thu, 16 Mar 2023 12:20:41 +0000 Ferruh Yigit <ferruh.yigit@amd.com> wrote: > On 3/15/2023 5:31 PM, Stephen Hemminger wrote: > > Resolve issues from using control-C in testpmd. > > Fixes regression from recent change to use cmdline_poll(). > > > > v4 - drop sig_atomic_t. Not required requires changes on > > some platforms. > > > > Stephen Hemminger (2): > > testpmd: go back to using cmdline_interact > > testpmd: enable interrupt in interactive mode > > > > app/test-pmd/cmdline.c | 27 ++++++++++++++------------- > > app/test-pmd/testpmd.c | 11 +++++++++++ > > lib/cmdline/cmdline.h | 10 ++++++++++ > > lib/cmdline/cmdline_os_unix.c | 8 +++++++- > > lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- > > lib/cmdline/cmdline_private.h | 2 +- > > lib/cmdline/version.map | 3 +++ > > 7 files changed, 62 insertions(+), 17 deletions(-) > > > > This solution is adding new cmdline API for -rc3 and there are some > testpmd changes, > can it be possible to have a simple workaround specific to window for > this release and get this set for next release? Not really. cmdline_poll() is broken in several ways. Don't want to fix it or use it.
On 3/16/2023 3:31 PM, Stephen Hemminger wrote: > On Thu, 16 Mar 2023 12:20:41 +0000 > Ferruh Yigit <ferruh.yigit@amd.com> wrote: > >> On 3/15/2023 5:31 PM, Stephen Hemminger wrote: >>> Resolve issues from using control-C in testpmd. >>> Fixes regression from recent change to use cmdline_poll(). >>> >>> v4 - drop sig_atomic_t. Not required requires changes on >>> some platforms. >>> >>> Stephen Hemminger (2): >>> testpmd: go back to using cmdline_interact >>> testpmd: enable interrupt in interactive mode >>> >>> app/test-pmd/cmdline.c | 27 ++++++++++++++------------- >>> app/test-pmd/testpmd.c | 11 +++++++++++ >>> lib/cmdline/cmdline.h | 10 ++++++++++ >>> lib/cmdline/cmdline_os_unix.c | 8 +++++++- >>> lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- >>> lib/cmdline/cmdline_private.h | 2 +- >>> lib/cmdline/version.map | 3 +++ >>> 7 files changed, 62 insertions(+), 17 deletions(-) >>> >> >> This solution is adding new cmdline API for -rc3 and there are some >> testpmd changes, >> can it be possible to have a simple workaround specific to window for >> this release and get this set for next release? > > > Not really. cmdline_poll() is broken in several ways. > Don't want to fix it or use it. What about to revert the original fix [^1] in this release and get a new version of it at early next release? @Thomas, what do you think? I think better to decide before -rc3. [^1] Fixes: 0fd1386c30c3 ("app/testpmd: cleanup cleanly from signal")
16/03/2023 18:01, Ferruh Yigit: > On 3/16/2023 3:31 PM, Stephen Hemminger wrote: > > On Thu, 16 Mar 2023 12:20:41 +0000 > > Ferruh Yigit <ferruh.yigit@amd.com> wrote: > > > >> On 3/15/2023 5:31 PM, Stephen Hemminger wrote: > >>> Resolve issues from using control-C in testpmd. > >>> Fixes regression from recent change to use cmdline_poll(). > >>> > >>> v4 - drop sig_atomic_t. Not required requires changes on > >>> some platforms. > >>> > >>> Stephen Hemminger (2): > >>> testpmd: go back to using cmdline_interact > >>> testpmd: enable interrupt in interactive mode > >>> > >>> app/test-pmd/cmdline.c | 27 ++++++++++++++------------- > >>> app/test-pmd/testpmd.c | 11 +++++++++++ > >>> lib/cmdline/cmdline.h | 10 ++++++++++ > >>> lib/cmdline/cmdline_os_unix.c | 8 +++++++- > >>> lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- > >>> lib/cmdline/cmdline_private.h | 2 +- > >>> lib/cmdline/version.map | 3 +++ > >>> 7 files changed, 62 insertions(+), 17 deletions(-) > >>> > >> > >> This solution is adding new cmdline API for -rc3 and there are some > >> testpmd changes, > >> can it be possible to have a simple workaround specific to window for > >> this release and get this set for next release? > > > > > > Not really. cmdline_poll() is broken in several ways. > > Don't want to fix it or use it. > > What about to revert the original fix [^1] in this release and get a new > version of it at early next release? > > @Thomas, what do you think? I think better to decide before -rc3. We should not add risky changes at this stage. Also I would prefer to see a review from Olivier, the cmdline maintainer. The reason of this breakage was a cleanup. I think it is more reasonnable to revert.
On 3/16/2023 5:05 PM, Thomas Monjalon wrote: > 16/03/2023 18:01, Ferruh Yigit: >> On 3/16/2023 3:31 PM, Stephen Hemminger wrote: >>> On Thu, 16 Mar 2023 12:20:41 +0000 >>> Ferruh Yigit <ferruh.yigit@amd.com> wrote: >>> >>>> On 3/15/2023 5:31 PM, Stephen Hemminger wrote: >>>>> Resolve issues from using control-C in testpmd. >>>>> Fixes regression from recent change to use cmdline_poll(). >>>>> >>>>> v4 - drop sig_atomic_t. Not required requires changes on >>>>> some platforms. >>>>> >>>>> Stephen Hemminger (2): >>>>> testpmd: go back to using cmdline_interact >>>>> testpmd: enable interrupt in interactive mode >>>>> >>>>> app/test-pmd/cmdline.c | 27 ++++++++++++++------------- >>>>> app/test-pmd/testpmd.c | 11 +++++++++++ >>>>> lib/cmdline/cmdline.h | 10 ++++++++++ >>>>> lib/cmdline/cmdline_os_unix.c | 8 +++++++- >>>>> lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++-- >>>>> lib/cmdline/cmdline_private.h | 2 +- >>>>> lib/cmdline/version.map | 3 +++ >>>>> 7 files changed, 62 insertions(+), 17 deletions(-) >>>>> >>>> >>>> This solution is adding new cmdline API for -rc3 and there are some >>>> testpmd changes, >>>> can it be possible to have a simple workaround specific to window for >>>> this release and get this set for next release? >>> >>> >>> Not really. cmdline_poll() is broken in several ways. >>> Don't want to fix it or use it. >> >> What about to revert the original fix [^1] in this release and get a new >> version of it at early next release? >> >> @Thomas, what do you think? I think better to decide before -rc3. > > We should not add risky changes at this stage. > Also I would prefer to see a review from Olivier, the cmdline maintainer. > > The reason of this breakage was a cleanup. > I think it is more reasonnable to revert. > > Sent a revert patch [^1], and assigned to Thomas. [^1] https://patches.dpdk.org/project/dpdk/patch/20230316172739.77933-1-ferruh.yigit@amd.com/