Received: by 10.213.65.68 with SMTP id h4csp30642imn; Thu, 15 Mar 2018 15:35:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELvh4/Z8o27uNsDSyhT2PwhOD3L1Ju2lXdR+GTUG/pkVYyJ1SwE0lxWGPRa44y3+1t5wyXai X-Received: by 2002:a17:902:5066:: with SMTP id f35-v6mr9935534plh.14.1521153350900; Thu, 15 Mar 2018 15:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521153350; cv=none; d=google.com; s=arc-20160816; b=yVDN12IQut3hB5YC5igLr6ZOvw4zyyYQRd53dFXzZL0gpKUajQAwWlgxLTvAsfnXnE YX2al/kiD8aH4UvwfZfjIq1I7na3TtZrDNTWl5dEHC0zp5XtqQ5d6KCis6MQOZDYYE6h 7pqIQkYlj5EgyDpd4N6VdQORDgJMbwq5D+7PspATDc0F+obUnTCDtyGXKkr6l0V7a1Dy oxFXfKpOsEBdSqgqAQ8hNW76/oruUO28+yXvEZMPGZlsNNSsb/iZ7dBI2bcJK6kBMPkl wGu3ybg9zpAHD1t0bEKQFmx8K7OrgVsAddJUXsJbjNWRTdemxfl9MZ+v7yYDRBwnLGzP fhOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=zRJnHUXt9B8i7ATSXoJkgA0D01q9hgobCumNIYyztrg=; b=L9HyC2hUXidUsCbb7rOnJpxEN6iTk5rFRvy7jG9o87Ci4N/v2rLoLdIabmSb34pUbA irRDERSO0uBIry+gxMJGzU6KLCHDrWVXwQhW2X6xB8Uy+0Xub9r9AmRqc6nwbv6A0dEo V5IvEhBErcji1GU63AYiEGRv6TVQydrT9+MMbwzHu5PO8hD3ohI+BHCq0TQojKWiXCT1 f5JsnKEiCgB0/UTqr5rztxY0uoUz6lMQyQ7Z7H+f8pQokgN+3DJBw4nxNpcBLb0Tya01 YljNlsiHX3gSetRehsdlAG3YiNPEaBNUoi2hxUkA/MZmcnlREv99GEqKm4P6AECs/I6q 0nng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kRsGdkRf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16-v6si4771114pli.557.2018.03.15.15.35.33; Thu, 15 Mar 2018 15:35:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kRsGdkRf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932539AbeCOWbN (ORCPT + 99 others); Thu, 15 Mar 2018 18:31:13 -0400 Received: from mail-pl0-f46.google.com ([209.85.160.46]:41689 "EHLO mail-pl0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbeCOWbL (ORCPT ); Thu, 15 Mar 2018 18:31:11 -0400 Received: by mail-pl0-f46.google.com with SMTP id b7-v6so604127plr.8; Thu, 15 Mar 2018 15:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zRJnHUXt9B8i7ATSXoJkgA0D01q9hgobCumNIYyztrg=; b=kRsGdkRflIH2nZVnjXMh+iyaI12qFV4W9Z365ENr5xKR+LeLWo7SKwWZqm5uee1UNR 2ONYcnU+neP/mtyUPepU6jVMffzPdTHUU0WRJ57Gh+reK1yBOStjYH194mFnjmukInED 5cSc9GqM/IO0REzcO1773m7maJpNH3A7rdGtdwcgs73CR2IaPWTLjAuZRmMNcl4FSzR2 QMYWrjGurdU6kyVdjQcoPkrHKa2bchTj31nJfQGPxr1RbA5tzEhLlFUtbqo0DC0F9AOA 9fY5jzCWRyW3/GaERqn+fDHS4AFJmRq9JfQyO+3u0toaO6JE2uEfVnH0HsVWD6d26a9Z CC9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zRJnHUXt9B8i7ATSXoJkgA0D01q9hgobCumNIYyztrg=; b=tr4xpOJhy4D2ei2PSNnJ3L4xFzEd+XClU4P3AnviLNhzWUMoo+TFpktSzJO8Nq7tOc GHjA6CDYwDf4gUHK/ISyHNnn28cjE25j6+Wv9ZQpb4f8QYTqFygLNVmkSer7dMlFpySl hhlWaLUMJu4O3uTSqqNtzYdS6QGnHmLVw5CEgXMYH4gU0xChWPS5ZVNfTeFXvBORK9Sh 6e1WjZkJUFbT/AdnIWTq3rC/HzC2HcVWIJQCeoXALE4m+X0wc5VYgKdgKg2CtLN/UxVF F4IEHPFQbLB4oyVgxtnT1pKDT6iTFXjzr3g00aOXk3ePGkkBPR4HeNHqQ4fOOq78Bu4A 4NLg== X-Gm-Message-State: AElRT7FzI6+ng/pdPHK+eRFX+3iQZnPSymNqkLk2ce1KWAmTSRbZvLoy 5JA7uGptbaeQnxi/U8GJ7G2noy9x X-Received: by 2002:a17:902:6b81:: with SMTP id p1-v6mr9899638plk.181.1521153071143; Thu, 15 Mar 2018 15:31:11 -0700 (PDT) Received: from [192.168.86.235] ([75.106.27.153]) by smtp.gmail.com with ESMTPSA id z126sm12015357pfz.27.2018.03.15.15.31.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 15:31:10 -0700 (PDT) Subject: Re: [bug, bisected] pfifo_fast causes packet reordering To: Jakob Unterwurzacher , Dave Taht Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , "linux-can@vger.kernel.org" , Martin Elshuber References: <946dbe16-a2eb-eca8-8069-468859ccc78d@theobroma-systems.com> <95844480-d020-9000-53ef-0da8b965ce6e@gmail.com> <3a959e50-8656-5d9c-97b9-227d733948f8@theobroma-systems.com> From: John Fastabend Message-ID: <5aeb54ba-2d96-4ab5-53c4-2d3691be7acc@gmail.com> Date: Thu, 15 Mar 2018 15:30:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <3a959e50-8656-5d9c-97b9-227d733948f8@theobroma-systems.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15/2018 11:08 AM, Jakob Unterwurzacher wrote: > On 14.03.18 05:03, John Fastabend wrote: >> On 03/13/2018 11:35 AM, Dave Taht wrote: >>> On Tue, Mar 13, 2018 at 11:24 AM, Jakob Unterwurzacher >>> wrote: >>>> During stress-testing our "ucan" USB/CAN adapter SocketCAN driver on Linux >>>> v4.16-rc4-383-ged58d66f60b3 we observed that a small fraction of packets are >>>> delivered out-of-order. >>>> >> >> Is the stress-testing tool available somewhere? What type of packets >> are being sent? > > > I have reproduced it using two USB network cards connected to each other. The test tool sends UDP packets containing a counter and listens on the other interface, it is available at > https://github.com/jakob-tsd/pfifo_stress/blob/master/pfifo_stress.py > Great thanks, can you also run this with taskset to bind to a single CPU, # taskset 0x1 ./pifof_stress.py And let me know if you still see the OOO. > Here is what I get: > > root@rk3399-q7:~# ./pfifo_stress.py > [...] > expected ctr 0xcdc, received 0xcdd > expected ctr 0xcde, received 0xcdc > expected ctr 0xcdd, received 0xcde > expected ctr 0xe3c, received 0xe3d > expected ctr 0xe3e, received 0xe3c > expected ctr 0xe3d, received 0xe3e > expected ctr 0x1097, received 0x1098 > expected ctr 0x1099, received 0x1097 > expected ctr 0x1098, received 0x1099 > expected ctr 0x17c0, received 0x17c1 > expected ctr 0x17c2, received 0x17c0 > [...] > > Best regards, > Jakob