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 74727A00C5; Wed, 13 Jul 2022 20:24:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C8BC42847; Wed, 13 Jul 2022 20:24:59 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 60BDA42836 for ; Wed, 13 Jul 2022 20:24:57 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id 70so10960914pfx.1 for ; Wed, 13 Jul 2022 11:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m8i17mskKMmqKzLkwlKG3wWFnOA7Ln1zWm9NhWXDuNQ=; b=WakuB4B0Cw9XdmjULwBdfQZlCdqrrayovfXm29Y5pQAKGwTNdChNkBf96uM/PZYP5S EqHxhXlHTyaYt3e8SIR1YtFimMnl1kvC+4g82F0QKOA+zedKsjS6vVns2414w54AR/Ep EJ/rKOuHEY4YjNMeo2svCvr+2TjgwCQptosNGizVfuTEvadi73whh/oLB3iIM2FXhKUx GWDAur5mY1QzQ/L276NZY8ck7D+wlU/YjBfM9TjQlFBI6ED0G0jD/voMgU1SqSI7lmOF kYJ4YoJQ3+WAU49s3WidDb0rXHLSU5s7nJX0gSX5B2BFtQAmtjiD2HLNXVHYsrJdq/CB 2YIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m8i17mskKMmqKzLkwlKG3wWFnOA7Ln1zWm9NhWXDuNQ=; b=WY7ncNk4kKWbg3kJrTuW0u2Iwl/OMxFAa/F6VwtCfUpQuzmPzPfzIGfOWkaD3Xb0Nu Rx41cfFndTEtTqp70hPdGe4vjS2AJurllF0g+QpKpQuAuzDs4E6MbnaUXn8mqKnx+4C3 GpKltCddeA5J4HhClVs/UGY9fH6/9NQpgjMyaY7DWyKisL8Pq9qlP4JP6zi1Gqi6724q 8PucmtxIU8izMyFTrexxnvRgtSkxO2EhXjNq69SiwkVQvT8B3LWz79dyWuRLCT3q81h0 qi2nnVdAqeVAi35b0bWIThEofT+Ucf8JdD42Me0Ss8JHOP/yA2hxsGu2B0iT3Dw9mkUX 21Mw== X-Gm-Message-State: AJIora8XwNG4qhRgrvYAGA9zdxhQaIC5OJLFEPGAyBNNT6AqJOcr7nUZ eIn12E1l2gkIoNNOOkuly3zMaySPf+Wwmw== X-Google-Smtp-Source: AGRyM1tsNhfk/Qwggdl8C03/XeA13/Jenc6CoVRTSJYaL31JdLmww2pwhOqm9WnGE4n0GjY9gffbnQ== X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:6302 with SMTP id b12-20020a056a00114c00b005282c7a6302mr4507769pfm.37.1657736696055; Wed, 13 Jul 2022 11:24:56 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id h8-20020aa796c8000000b005289eafbd08sm9444977pfq.18.2022.07.13.11.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 11:24:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Harry van Haaren , Bruce Richardson , David Hunt Subject: [PATCH] sw_evdev: report correct device name Date: Wed, 13 Jul 2022 11:24:50 -0700 Message-Id: <20220713182450.257336-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 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 The software eventdev PMD reports todo-fix-name as the device name. Looks like simple fix. Fixes: c66baa68e453 ("event/sw: add dump function for easier debugging") Signed-off-by: Stephen Hemminger --- drivers/event/sw/sw_evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index f93313b31b5c..c9efe35bf428 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -622,8 +622,8 @@ sw_dump(struct rte_eventdev *dev, FILE *f) "Ordered", "Atomic", "Parallel", "Directed" }; uint32_t i; - fprintf(f, "EventDev %s: ports %d, qids %d\n", "todo-fix-name", - sw->port_count, sw->qid_count); + fprintf(f, "EventDev %s: ports %d, qids %d\n", + dev->data->name, sw->port_count, sw->qid_count); fprintf(f, "\trx %"PRIu64"\n\tdrop %"PRIu64"\n\ttx %"PRIu64"\n", sw->stats.rx_pkts, sw->stats.rx_dropped, sw->stats.tx_pkts); -- 2.35.1