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 46B2BA0C45 for ; Tue, 26 Oct 2021 19:57:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37FE2410F0; Tue, 26 Oct 2021 19:57:46 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.153.124]) by mails.dpdk.org (Postfix) with ESMTP id A49D0407FF 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-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-l4dmrvS2PK2q5qmPOjaWSA-1; Tue, 26 Oct 2021 13:57:41 -0400 X-MC-Unique: l4dmrvS2PK2q5qmPOjaWSA-1 Received: by mail-lj1-f198.google.com with SMTP id v11-20020a2e990b000000b0021174a28c48so39143lji.13 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=PReZ21kx+yQYjJO2SPdkw3p34NHZSMMfzKakQ3JxHgW3/SO56BxUTNb4ovgy+XiuiX Jnjq3BaXhrr4yZvho3SYZYn5K3oHPunDdlMbKjCAIP3Bxg4JGOo8VcxGvcItoMANRrb/ CpwfpGohX8HpttOL5T+FJymSQdOQI1xuVoW3SBwb+/gx5dcBOAKl7GzmMBN/W2htAGHa EAHAgI8YvsNCFoxoJ9ome8uydmhTQWyvRkJ5qW/1o+z/yQjerg2opFtdkkkR9M13DThi +By7lcHphaj9WJ6/rhrczebjLAeo0FPm+8VuUB/2zkbqCDc/OqeGvJkbnFms0D7yNYbo faXQ== X-Gm-Message-State: AOAM531fbhhcX8esAh2it1CKTKn3bp8HTJlSAG29ssF1SN+T45fnT4sr DPFs0MyCYtroivkzuvfoPXnWzIwZO3cpsHkKH200/RuNIKPeTP11cslzkitrrY21zOlxaJUCUAV 9KbZv+Kwx0Khtnd6NTOJxC8Y= X-Received: by 2002:a05:6512:3f28:: with SMTP id y40mr24636637lfa.499.1635271060372; 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-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 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