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 9E77BA0547; Tue, 26 Oct 2021 19:57:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A22140E0F; Tue, 26 Oct 2021 19:57:45 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 47289407FF for ; Tue, 26 Oct 2021 19:57:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635271063; 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=tc2cOGAjq0UEIhaD3ezjSPYwbIrdrd6OmkgZNYhgoCk=; b=ED5o5sBeFWNskDakOBKMOcNimjADJS5192qnzY1HDt/Nkp6sVdkJj4kL+xYd/w22c2BC16 LeVfonTA6+WdG9yfIxt+iG3Eds/MXrUcZCq8Ox1/xpBthqTfIChSoWVC/lAbnguqjhrzF5 luIrTDxJT4EaxY0irP0OFUTJ68ztVO0= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-355-HsfzZLHQPZ64lAXlHxjQfA-1; Tue, 26 Oct 2021 13:57:41 -0400 X-MC-Unique: HsfzZLHQPZ64lAXlHxjQfA-1 Received: by mail-lj1-f199.google.com with SMTP id v20-20020a2e87d4000000b002118a6e05edso38485ljj.14 for ; Tue, 26 Oct 2021 10:57:41 -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=tc2cOGAjq0UEIhaD3ezjSPYwbIrdrd6OmkgZNYhgoCk=; b=ZGZx4Xi9lLDLXsCuBO5G1cefwXDs2mH74iw/ps1ciFznVh1qwB1xE3Q7JGyCC6etfm dXyuGL15S1xVI4Gefhtk5lZw0j+LjtlfghPEUTMuwSCi7xRA8B0WwbTUhh7PDpOVNCsb L1CRyhDWT24z8oI54mIHTjbUD0MQg3lJYdoNOs8FQNHvzOEfsRNIUokqwXMYFAISJQCI T3vmjT4bfh+JP2z3HR4qWuQJ4ROTVUKXBQIgac9LaWXDgJ4XojEONPC8Uq1ooQN+sN1H oEBzloxNI4KtiPJM22zEMrlz2EP5XYvUttymVq+q/Aope/zZAFsFJ98v9x6eSQbDOOIH zLLg== X-Gm-Message-State: AOAM530LhRn96ETmkFYANvuM67AaVyYjprW6HFT2OpQsAegCd5TGLpyw taGplZKyB5LFbz7S3sts8ofvSBIGBz9xdHWwtq6r2bE03KYE4E7WcTrmasDO3Mq4e9lIJFYI0Id MuAGANM5rVbUUvxzjuc8= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr24636645lfa.499.1635271060428; Tue, 26 Oct 2021 10:57:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSvuUyFf37KcwLRs92pVJTeBvK+sNb9/pGcjm8m/xpoDDMRALSnFdpqu1ONDng9NuOwBW8EtlrkNaniZVC00c= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr24636623lfa.499.1635271060164; Tue, 26 Oct 2021 10:57:40 -0700 (PDT) MIME-Version: 1.0 References: <20211026111943.19957-1-konstantin.ananyev@intel.com> In-Reply-To: From: David Marchand Date: Tue, 26 Oct 2021 19:57:28 +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 5:39 PM David Marchand wrote: > > 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 Applied, thanks. -- David Marchand