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 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 ; Wed, 15 Mar 2023 18:31:36 +0100 (CET) Received: by mail-pj1-f49.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so2659504pjt.2 for ; 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 To: dev@dpdk.org Cc: Stephen Hemminger 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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