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 17AFEA00BE for ; Fri, 11 Feb 2022 08:56:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E2AB40042; Fri, 11 Feb 2022 08:56:06 +0100 (CET) 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 1165140042 for ; Fri, 11 Feb 2022 08:56:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644566164; 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=osqVwhSNw8HrBTcm/jc4tuqUJpQgC+BBDNt0kCcbOMg=; b=Om1QQNZzGapgW6qIVVWnM+Gz7wK/C1R3MzqTE5wmefgusIdp362KKKyFzw8K1Ote+KhscC VtWqxWtkHv43oX2DLwKw+qDq6gFNuyTaaZKn7y1HWPYJdaUupKsPXLltgEqORHdkQIlUVI LbA3MVYrjarp3y6FSyYL5sXhTYgiJUo= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-28-ErvMHaqvOK2MDbf5QAKPuQ-1; Fri, 11 Feb 2022 02:56:03 -0500 X-MC-Unique: ErvMHaqvOK2MDbf5QAKPuQ-1 Received: by mail-lf1-f69.google.com with SMTP id w42-20020a0565120b2a00b00432f6a227e0so1917800lfu.3 for ; Thu, 10 Feb 2022 23:56:03 -0800 (PST) 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=osqVwhSNw8HrBTcm/jc4tuqUJpQgC+BBDNt0kCcbOMg=; b=KN9NgYtVKzy19UNjujzM94Ot8bqn6MWys2zABaASZhMjPgxt+0J6komVmYssS9UNjs CE58tlIstBQc0bWKVAyeWnj0BIakbVZEY/i6I38I10kAtVqBCWYRvf9Qqp+i3LPkRcNH WeAViZYeSjdaBhcGyc2/QYQMKeir7uIDEIowzm1HT7HsR/n3aWTRPL5SXbqhENus0Edf MDjtvqpkaglapkHEiL7mdYGijHxIZzNABAh0V2pnXnn+hFKXFigeNDPvyEkGdggn+r+X 2Cyfu+xi1ujRkFWX5uxIOYCzXygUCXYc7hkBnWHBUgaRV+Gztg5vjreGdze6cf4O4DJh viPw== X-Gm-Message-State: AOAM533tnCST2xdg3e7/PdhrykyDNhfJNiZdKBJ6XDFB6Z2RONmAPK9t y5yuipzh8hZSOXb9O5FGFgEIjoKkbP+p95YoWgWbAkPH3RWHrEL7nhVV/isXetNNjsGOUnIX2q3 w8q6ICnDea1YVTd6Vw9dGCNA= X-Received: by 2002:ac2:4951:: with SMTP id o17mr347354lfi.553.1644566161937; Thu, 10 Feb 2022 23:56:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsYLCVdlJRS7BbV5lGqu9dEB/1H80vpdHjN98hEYJLLx6A2mxNj4KCrVsM9AClGY8eqQPUSyv8FN4Xods971I= X-Received: by 2002:ac2:4951:: with SMTP id o17mr347342lfi.553.1644566161744; Thu, 10 Feb 2022 23:56:01 -0800 (PST) MIME-Version: 1.0 References: <20211223153742.760838-1-vladimir.medvedkin@intel.com> <20220127180853.1131512-1-vladimir.medvedkin@intel.com> <98830700-195d-f3aa-af56-bdda03303a4a@redhat.com> In-Reply-To: <98830700-195d-f3aa-af56-bdda03303a4a@redhat.com> From: David Marchand Date: Fri, 11 Feb 2022 08:55:50 +0100 Message-ID: Subject: Re: [PATCH v3] app/test-fib: fix possible division by zero To: Vladimir Medvedkin Cc: dev , dpdk stable , Kevin Traynor 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" 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 On Fri, Jan 28, 2022 at 6:44 PM Kevin Traynor wrote: > > On 27/01/2022 18:08, Vladimir Medvedkin wrote: > > This patch fixes the division by 0, > > which occurs if the number of routes is less than 10. > > Can be triggered by passing -n argument with value < 10: > > > > ./dpdk-test-fib -- -n 9 > > ... > > Floating point exception (core dumped) > > > > Fixes: 103809d032cd ("app/test-fib: add test application for FIB") > > Cc: stable@dpdk.org > > > > Signed-off-by: Vladimir Medvedkin > Acked-by: Kevin Traynor Applied, thanks. -- David Marchand