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 0397EA0547; Tue, 26 Oct 2021 17:39:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7E9C41125; Tue, 26 Oct 2021 17:39:55 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6483840E0F for ; Tue, 26 Oct 2021 17:39:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635262793; 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: in-reply-to:in-reply-to:references:references; bh=WXrDNM+79AsB13U+CeLmlXxfsnBdgG4eTnZGTnbDlLg=; b=DXDMOocNLmWCjAlCrOv0dNLXH7ZGNYYBpt7TdDdi8iJEOuvSIhmasfYlCK9rm/Onqy8qS1 RVUVjrBl7b1WR2gn567GBespzDGsJsguPPiJhx2pKezOS/0x9vSMVTQeInsm0xa3iDYjlC g5qSm9g0tjUHV7omn6JWymY3eoPo930= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-308-KWbA8tNnNaKbNIftmx9yVw-1; Tue, 26 Oct 2021 11:39:52 -0400 X-MC-Unique: KWbA8tNnNaKbNIftmx9yVw-1 Received: by mail-lj1-f198.google.com with SMTP id j8-20020a2e3c08000000b00210e2890d61so309219lja.9 for ; Tue, 26 Oct 2021 08:39:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WXrDNM+79AsB13U+CeLmlXxfsnBdgG4eTnZGTnbDlLg=; b=ePqs6wuCGvF2TY1kYhbIR6/+QqeiVZ7YxFwx1OUaWUvr+orDqYd7eQ4VLZkLlQQy32 6fk1tY76g5EAJnmtFf26R3v75Xks9aaGA/PQpNvDDhidzK/ZKide33m3h6SUgIWl+cmV AEIUZa/T2MzP6X9cRWh2V6NVh9AqUwpJtKTl0pRn5DbrnVeaTk54rrPQmF6vdA6Bgxuw pCfb612JJc4gKrzsJSpzs7vf1riW3OmQqZg3mJVzciQT2VU09grbW7UofPvUQNk6LsP3 4Gyy9t5ZIyjAHZwCvUVaPwA/a94m6qr1ne3Pe/7+Gof0EYUlkRzzayVkLjeVc2JT2R4u 4H6g== X-Gm-Message-State: AOAM532xAv5Qcq/vnEwDhzfBeozKluwv+UMgEMUaQzVvJgqMjpi3Fn5F +KcLUtAu8dWx5dN0YRUCi5Mc2EHL3TwQiOx5BtX52d/hqZQgl+JWDtD/Qb8vuBE1rfRaEgm0UGM IR6t088jiZ1k2ISJBWMc= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr23958341lfa.499.1635262791024; Tue, 26 Oct 2021 08:39:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3Pqwotkz820o4ZmcvzZKcb6bkyspaiX4YnsDo7zFj4n3JBVJTGLQnwNB8bzT9urHyeYpYfiPmpbXIdI+WkdA= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr23958320lfa.499.1635262790727; Tue, 26 Oct 2021 08:39:50 -0700 (PDT) MIME-Version: 1.0 References: <20211026111943.19957-1-konstantin.ananyev@intel.com> In-Reply-To: <20211026111943.19957-1-konstantin.ananyev@intel.com> From: David Marchand Date: Tue, 26 Oct 2021 17:39:39 +0200 Message-ID: To: Konstantin Ananyev Cc: dev , "Pattan, Reshma" , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] test: fix forwarding packets through not-ready port 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" On Tue, Oct 26, 2021 at 1:20 PM Konstantin Ananyev wrote: > > (bitratestats_autotest|latencystats_autotest|pdump_autotest) tests > generate a log of error messages like that: > > test_packet_forward() line 104: Error sending packet to port 0 > Send pkts Failed > > These tests use of app/test/sample_packet_forward.* code. > This code creates a portid from a ring, but doesn't properly > configure/start it. > The fix adds code to configure/start given port before usage. > > Fixes: 7a0935239b9e ("ethdev: make fast-path functions to use new flat array") > Fixes: a52966cd48fd ("test: add helpers using ring PMD Rx/Tx") > Cc: stable@dpdk.org > > Reported-by: David Marchand > Signed-off-by: Konstantin Ananyev Tested-by: David Marchand Thanks for the fix. -- David Marchand