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 CF056A0547 for ; Tue, 26 Oct 2021 17:39:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1A24407FF; 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 3925E407FF 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-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-s0GOupHmNIC8EYKzq4-Clg-1; Tue, 26 Oct 2021 11:39:52 -0400 X-MC-Unique: s0GOupHmNIC8EYKzq4-Clg-1 Received: by mail-lf1-f72.google.com with SMTP id x7-20020a056512130700b003fd1a7424a8so6291329lfu.5 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=2vk7INSEP506BzR4IFyp8itZHhvjRtuswA7c3ony0QNno65C4NPI5meEEgkIbCbUeK 6GQxmh5dZADLZ+4jUIcHgQSh3gd3ndWn801gMDNnwn4lmF8MwzQ50xxoQzLR9jgULQHZ mUsHKAdbHy4Hp9M+bsAwEhesJYr3nA/tD/nVJN3RlzYesQwAu74eI+qZy9Pe880oS9th lmR2NcweocWuXFKnG0Kl4tZaqVtD+vojEQNhZEDQfMDJJjyBrNOkcxp+tQnI9+32zCt/ qZolEA8KDmIf6zNpkzvyNXeUKFRqBfkYABYEerwUaivH/q7SwE1BR52IGobZq3jceDjd apsg== X-Gm-Message-State: AOAM530s8hg9Vemu4LFvNSG42FArQhHqmP/uhsA6iaq5D/j9u70KSgec pzLNRw0Vm1TsKu5bTp/U6PqM2Bk/5J+a+L9Btop0alqBw6SDQAnbuIoMBWZH3Erb0zAvZ8qC0GK fyc9T/mUlIW35ykfYbpWNOrE= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr23958337lfa.499.1635262790963; Tue, 26 Oct 2021 08:39:50 -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-stable] [PATCH] test: fix forwarding packets through not-ready port X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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