Received: by 10.213.65.68 with SMTP id h4csp884701imn; Wed, 14 Mar 2018 03:10:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELuStbSsqubzAkzBU3e2FmqSt1p4j+TLme7buhkAPyhfAQVC0TR79yx8x4t7lzn43J6cg7aP X-Received: by 2002:a17:902:f64:: with SMTP id 91-v6mr3558730ply.232.1521022242062; Wed, 14 Mar 2018 03:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521022242; cv=none; d=google.com; s=arc-20160816; b=l6bvFHwVPfw//fZRDZVMRvnNRd4rBF4pVB/MqZXF9R+5rM6v+OH549ybtZQjY95MBh 8NBdQPF4A8k3GjjMjRMrnrJOIh+EVU91StAl+7+aUWDZYKg2EKqZ+5sRasaoClW1c145 C2hB/t2fZAkQXbenJ5hL6upttfbZM3vRQevHpGdN3n5p+joVJLMbScw8DBvwp7tsAUpi PW/QqrTVc5DUFj5UPXeWTD8foNpy2jz75TtDqqm2qnGk/bnUIc+p8jWj1AhJcQaBcjHc Vl3Y6kHPeI6EKzQGSvzI3I66a+o3MZ+nOUoZ1mpNGJJMajl4DFrLU7wgOANpsWS6Sfha SNtQ== 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:references:cc:to:subject:from:arc-authentication-results; bh=VV9NBwQAHAB+9djrd9tPYjrvxsDe1wSd4/9S14Czplg=; b=Az4byyDonoTEhGYl5ejz4qZr//OKPWJEg4KzJ/RxhZkqctbCHLnlP4xREZKy2r61rE m0eTQvLaC8LxF/3WDHDGZ0tuZZVaIa/M9TxBKfwNy46lx8MIhx9gRtGw8yZV8+fvPcVo wAolS+OQW8a0aawFRhJuIoCTZdNvwh33D/vUOrT9PFpBaMbgkmfKuJaZrhh9UfP7nyf4 iHgT+jCpdFokfkzRc/fiXHffg1clcjLjTe6SuglMr718QfSI34BHIDjhP29SmM8eNvcj 0jrHW8OXkwtFPSjDc8BpCH2mPBSjdUHFbZJrtUC4gJuS0gPya0jkZbhBx1bV4fKu/jIm BIHQ== 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 n2si1640931pgc.529.2018.03.14.03.10.27; Wed, 14 Mar 2018 03:10:42 -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 S1751512AbeCNKJK (ORCPT + 99 others); Wed, 14 Mar 2018 06:09:10 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:35294 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbeCNKJI (ORCPT ); Wed, 14 Mar 2018 06:09:08 -0400 Received: from [86.59.122.178] (port=55955 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 1ew3LC-00026q-GQ; Wed, 14 Mar 2018 11:09:02 +0100 From: Jakob Unterwurzacher 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> Message-ID: <52581141-db46-8657-e0b5-161e236caa1b@theobroma-systems.com> Date: Wed, 14 Mar 2018 11:09:02 +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: >>> 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? Not public, no, the problem is that you'd need a CAN adapter as well. The test is simple, sending CAN frames with an increasing counter and a random length payload: [ tx thread rx thread ] | ^ v | [ interface 0 ] ---- cable ----> [ interface 1 ] I'll see if I can come up with a UDP testcase that works with normal ethernet interfaces. > Is this a single queue device or a multiqueue device? Running > 'tc -s qdisc show dev foo' would help some. Here you go: root@rk3399-q7:~# tc -s qdisc show dev can0 qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 > If we introduced a OOO edge case somewhere that was not > intended so I'll take a look into it. But, if you can provide > a bit more details on how stress testing is done to cause the > issue that would help. Will do. Thanks, Jakob