Received: by 10.213.65.68 with SMTP id h4csp113935imn; Thu, 15 Mar 2018 11:10:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELu5QgtBNNNXlw5OStdKaFfpTI2EHOM5tgDdH1gqz+zVTF6kADtL2oT0xH8oIqHErusiJcdi X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr9198431plo.74.1521137448855; Thu, 15 Mar 2018 11:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521137448; cv=none; d=google.com; s=arc-20160816; b=GTSmWIDl3ucn0NuM7AoD4wxfqDvfFrTFEjW9CNA0OlxrMEmbwynqXJMYm8RXnfHE7h H2LYOSPwvWsJH7PusyZ7veTZHBG2c6LhACwByVIN/BkB3Xb5TA0Gc7Ef/otvDdmg+la0 VIHAKX0sYmUSnr77jj0UvXNq8NgeL1BgUSIyf1+vKu1G0cEUd+33jUunK7J26APdQISh jDwFYZZnKbU+2r1o2lwkwwvqS10KQYT8ZogHGH7fVMHUQIlCnWJkvW1V21//iiGcuNnc HU0tcCmfH0qg5k1iKmVyS2Dn3fAKTeN1ma4w98/tCpasKql3F26UVTk1cyjtA/S2D6xn vRqQ== 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:arc-authentication-results; bh=TTLdSszyntZ/hG1ZdMsMhbpOvPb4LlgUREFNh+/27l8=; b=aL0/ajgLMj6WovlX2Z93h70d2+fsKhIwKyI87C1Z6ioY1rS4pyXLQyvfwQYYL36ibX m0zFXXWEw+MXWoYzVjtbzGRYXPvPytrqA5fPirE03qcZeW6+qPE4SY0uNo44CknrNFOy 8lRZTJ63FADdj3s+9VuKjP/0WsjRhASUinAahewqopPsSYUpw2+6JbcIV0jBdQeI1o+l AJZLcZ9fjyUPTDWrTWdQOVTtzkJ9QwcsVysDHRoo1+6VmBRQYASZ6Vgmcujr4y74fpXK rPZXPEwGxMoAeCIzUT7UFe7E19Qrl3M1VPc3gJ5Myc8LhTZ3Z6m6Y02Dum+06xa4gybX scgw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16-v6si4335244pll.504.2018.03.15.11.10.34; Thu, 15 Mar 2018 11:10:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932481AbeCOSJD (ORCPT + 99 others); Thu, 15 Mar 2018 14:09:03 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:42343 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932101AbeCOSIt (ORCPT ); Thu, 15 Mar 2018 14:08:49 -0400 Received: from [86.59.122.178] (port=61502 helo=ju27.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ewXIz-0004z1-R5; Thu, 15 Mar 2018 19:08:45 +0100 Subject: Re: [bug, bisected] pfifo_fast causes packet reordering To: John Fastabend , 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> From: Jakob Unterwurzacher Message-ID: <3a959e50-8656-5d9c-97b9-227d733948f8@theobroma-systems.com> Date: Thu, 15 Mar 2018 19:08:45 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <95844480-d020-9000-53ef-0da8b965ce6e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed 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 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 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