Received: by 10.213.65.68 with SMTP id h4csp1483882imn; Mon, 19 Mar 2018 05:34:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELuvsGRFkZzoCG2lSwjJHDrpOMEzen6pXTwpAv6NxIC0n/8B4DySZkfmTUEZxnXrZMoHbsQA X-Received: by 2002:a17:902:9009:: with SMTP id a9-v6mr12060624plp.272.1521462894919; Mon, 19 Mar 2018 05:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521462894; cv=none; d=google.com; s=arc-20160816; b=KPCtxatO1c2/sQWgLCf/g7Fw4oBMZjm1IYUCDzjSvs5Tfcur/zAOa0xuAhT7ZGn89f 9sUBRFybGD8FwwOSE5iKjj0F9tFQf16fBW5U4bCqmOtdwSrwieMPlkYkh2Yo7BjaXZfA SjpI2l7IW2BCwIR+dAqKaVk/UdsQqeOvGNATiyHZY5s5nY/R/rHd4tOAmD/b6EExXWLE kmb/1TSQQzBXxH60SPE/4T3ql2ZckdVAPnLmZND5BrPCfhxtPGPBcH25gM7TPnTMDVZd dsS+yiT4Vqgywwe1SwPBL15lJRH0vaV/REXzgSEexGqulxFZhFewNOxbQYI6vgNQazAG cPOQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=gfAj0K3j43DHNRtKeqeWWVLXqi5NoJLv9QkU8mBdk9k=; b=oWQO/U/fK0Her2C3Vsyc43az287BLu5IeJ8pHOyfIXLiuOn00tP5hLNxZxQGh1VhUP aAY/fpEVE+6PTjBEmj4Ry+MzfgN3XCbl2DPn4SQ34S/eMKHfqveCkSvUQy3he1SzeNyh cOZNdXXSkXgw5u1cbz0BNmdYi0n4Dni84MLFVyxyPfClkbdDZNvyORZGpgzFALqGMLtq sKJrNAMWxOKuZ8mtGoXdF/rK1Nvyd+iZk5Fk1etprEE4cuaxdXt5x5DobnLav03L7T7/ YvAUBkbtvJMvVWUoImasyJvfAiqUbncW9rr5LmwEBTXuANDWFDRBiK8TOeC1hHfcdvVr rlug== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc5-v6si12053982plb.506.2018.03.19.05.34.40; Mon, 19 Mar 2018 05:34:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932793AbeCSMci (ORCPT + 99 others); Mon, 19 Mar 2018 08:32:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932490AbeCSMce (ORCPT ); Mon, 19 Mar 2018 08:32:34 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AE632D145B; Mon, 19 Mar 2018 12:32:33 +0000 (UTC) Received: from localhost.localdomain (unknown [10.32.181.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 69F431DB23; Mon, 19 Mar 2018 12:32:31 +0000 (UTC) Message-ID: <1521462750.3059.12.camel@redhat.com> Subject: Re: [bug, bisected] pfifo_fast causes packet reordering From: Paolo Abeni To: Jakob Unterwurzacher , John Fastabend , Dave Taht Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , "linux-can@vger.kernel.org" , Martin Elshuber Date: Mon, 19 Mar 2018 13:32:30 +0100 In-Reply-To: <340a6c54-6031-5522-98f5-eafdd3a37a38@theobroma-systems.com> References: <946dbe16-a2eb-eca8-8069-468859ccc78d@theobroma-systems.com> <95844480-d020-9000-53ef-0da8b965ce6e@gmail.com> <3a959e50-8656-5d9c-97b9-227d733948f8@theobroma-systems.com> <5aeb54ba-2d96-4ab5-53c4-2d3691be7acc@gmail.com> <340a6c54-6031-5522-98f5-eafdd3a37a38@theobroma-systems.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Mon, 19 Mar 2018 12:32:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Mon, 19 Mar 2018 12:32:33 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pabeni@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 2018-03-16 at 11:26 +0100, Jakob Unterwurzacher wrote: > On 15.03.18 23:30, John Fastabend wrote: > > > 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. > > Interesting. Looks like it depends on which core it runs on. CPU0 is > clean, CPU1 is not. > > Clean: taskset --cpu-list 0 ./pfifo_stress.py > > Broken: taskset --cpu-list 1 ./pfifo_stress.py > > Maybe related: CPU0 is where USB interrupts are handled: > > > root@rk3399-q7:~# cat /proc/interrupts > > CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 > > 217: 2175353 0 0 0 0 0 GICv3 142 Level xhci-hcd:usb5 Is not clear to me if you can reproduce the bug with the vanilla kernel, or if you need some out-of-tree nic driver. Can you please clarify which NIC/driver are you using? Thanks, Paolo