From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1C6CC433F5 for ; Tue, 16 Nov 2021 15:08:14 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 5A48961AF0 for ; Tue, 16 Nov 2021 15:08:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5A48961AF0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AEF8426DD; Tue, 16 Nov 2021 16:08:13 +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 B1A5D426D2 for ; Tue, 16 Nov 2021 16:08:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637075292; 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=8IHTNs2jZtq6/dbrNbfzmPVh4I1mckB7qFAcWaIZq/w=; b=MJysUUvHAKJtfbekLDZKzDxxALQRtJLKuhToOC4lZudktpWFLhdxAJVq24OPfAVHxU79Mc mMjYV12OMDAhZMmvnBPuRKaEHvKCu2IrqXABMg1VmLQ6kCmvPLOHMqODqrlFnl85AdGCol ARp+r/KtIrjvClzxO/rpjARSuzRPmC4= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-582-IH9S69VmNIGJcXNbzn707w-1; Tue, 16 Nov 2021 10:08:11 -0500 X-MC-Unique: IH9S69VmNIGJcXNbzn707w-1 Received: by mail-lf1-f71.google.com with SMTP id c15-20020a05651200cf00b0040524451deeso3856725lfp.20 for ; Tue, 16 Nov 2021 07:08:10 -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=8IHTNs2jZtq6/dbrNbfzmPVh4I1mckB7qFAcWaIZq/w=; b=Mhj0RovQ4IvKxcJyAe+242akUDjjuGNsaXGxqhwcP9Pif6f1nAuYNuBSzuClxup94A HUm/c2SFvnD/hsFofQMKWU2Lxq6u0bw9QLuYMN9wr+cObtpAZ6vx5ufIwBhT38J7z3BO U/muc74dHZHnRAcPbcFiflr1RxhxyoaF0JTmqnXy/TPo6k02TjyyOj+sGHBHvxoABoDa wjle4v3uegEzKpZ4gqfZ7wpvceksofUCq5fC5iHjYnPfsUDcBXWL7KgUOerVkKYDIJES m025Xvpp+ovIKZ1FfdS+0TJxu0wC+cBPTR/GM9g1UgyEBgD48/7VSQpSbx8MAM9uemaq rSHw== X-Gm-Message-State: AOAM533AFU8LvNSX0z75jSSyY4cBzcRlEGm5dmJhdsUBesHimoVZsDu8 4W++yhMi/OzwrEoJec9vbD5MVZ9dQy+ZOh63Nmi/LVqcvO+vXceNaJQYZdpgtwSkOazCOBVkMYa f1UyzW5bS/VC+fFM4yaM= X-Received: by 2002:a2e:96c2:: with SMTP id d2mr7790469ljj.46.1637075288777; Tue, 16 Nov 2021 07:08:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXNcq2B//19hBx8A1PolOsDC+g6Pp6vRKT3e/+LJwiwjpe0co1CmAnOjRVCCLTBe0Vpbbj4cAJl8dk1lxEup4= X-Received: by 2002:a2e:96c2:: with SMTP id d2mr7790215ljj.46.1637075287326; Tue, 16 Nov 2021 07:08:07 -0800 (PST) MIME-Version: 1.0 References: <20211026095037.17557-1-getelson@nvidia.com> <20211110165800.11018-1-getelson@nvidia.com> In-Reply-To: <20211110165800.11018-1-getelson@nvidia.com> From: David Marchand Date: Tue, 16 Nov 2021 16:07:56 +0100 Message-ID: Subject: Re: [PATCH v4] examples/multi_process: fix Rx packets distribution To: Gregory Etelson Cc: dev , Matan Azrad , Raslan Darawsheh , Thomas Monjalon , dpdk stable , Anatoly Burakov 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: 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 On Wed, Nov 10, 2021 at 5:58 PM Gregory Etelson wrote: > > MP servers distributes Rx packets between clients according to > round-robin scheme. > > Current implementation always started packets distribution from > the first client. That procedure resulted in uniform distribution > in cases when Rx packets number was around clients number > multiplication. However, if RX burst repeatedly returned single > packet, round-robin scheme would not work because all packets > were assigned to the first client only. > > The patch does not restart packets distribution from > the first client. > Packets distribution always continues to the next client. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Gregory Etelson > Acked-by: Anatoly Burakov Applied, thanks. -- David Marchand