Received: by 10.213.65.68 with SMTP id h4csp75382imn; Wed, 21 Mar 2018 12:45:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELtcUBduwJXPvc6u6Qd+W6tEyt9YRBTiS/qiyca6FCAAk6OalbyXLKBoqh77MPaF0OFoVuyg X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr2385219plj.390.1521661532848; Wed, 21 Mar 2018 12:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521661532; cv=none; d=google.com; s=arc-20160816; b=qDCum7uC9jDb3goijjulxm0LIWEMuDLhIxKZXo4rC0cNg6FTLpuvpdsFzXTLWH+kU/ cR5u4AwNfMAnF2VVA0ffMpWDUZp8xM7OZdHJoqTvGKBh8wQWrg4kb6duWJsAWBuIVRtk uxSgMOPMVnRTdl9MAdTjdTo7YpaKIWMPMf175g8WE0TaIsXqfsA2X1aDc7ClcEyApUGD n28nKQ9jOQvF9PHIb9OxE3rG112rP2R3bXwsj88atqyFwR2Qx9bVU65dzbdsGhErz+qz zTjA+mho5aNzzaAuY56aIHMacYE8Dkl0TQvJxHulSX2GYPkwN4zrfm8Xldl4It58YiF3 enTQ== 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=zc15Dl2xerWaOgSxjCZAQi4hT/9c6HfPt6C0HhUzYus=; b=JJG3LtuxDYEfFqEP/WNiGwJoMQiT2hmp4jqJ4rE8xE/g7Uy01XuIOanB/YNuV6QsV+ FJSdkgOjFnCIihFxGkNmTJcLqlFr4lA/wuZihcQ3AswIKGX8Qux7F1/46ztgyinDTS/q 1ktpCYPH2NEsbyd036QBs1I7zu/RqfU3Fuo7xpqpaLjAW1O97LSUDdrGHRvy79tosyfv mR8Y4odsCtrgABqxqDblHJYO8H75VlJVf1T5W61pxfgycGqY5OcaiDiPjzMAYOEYUprG 6aWkPJPHJYt3n1nvwN+C/yT6LW+WgN5l2duFPQBY6ISJhN8QVBpaeDYibJBWRtdTJa9f ondg== 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 e4si3204273pgp.431.2018.03.21.12.45.12; Wed, 21 Mar 2018 12:45:32 -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 S1753117AbeCUToP (ORCPT + 99 others); Wed, 21 Mar 2018 15:44:15 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:53456 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752833AbeCUToN (ORCPT ); Wed, 21 Mar 2018 15:44:13 -0400 Received: from [86.59.122.178] (port=56516 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 1eyjeX-0003jX-8s; Wed, 21 Mar 2018 20:44:05 +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> <3a959e50-8656-5d9c-97b9-227d733948f8@theobroma-systems.com> <5aeb54ba-2d96-4ab5-53c4-2d3691be7acc@gmail.com> <340a6c54-6031-5522-98f5-eafdd3a37a38@theobroma-systems.com> <00cc2d41-6861-9a9c-603f-ba8013b2e2ce@theobroma-systems.com> <4e33aae4-9e87-22b4-7f09-008183ea553a@gmail.com> From: Jakob Unterwurzacher Message-ID: <983427eb-2e25-f201-c953-4cff22569deb@theobroma-systems.com> Date: Wed, 21 Mar 2018 20:44:04 +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: <4e33aae4-9e87-22b4-7f09-008183ea553a@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 21.03.18 19:43, John Fastabend wrote: > Thats my theory at least. Are you able to test a patch if I generate > one to fix this? Yes, no problem. I just tested with the flag change you suggested (see below, I had to keep TCQ_F_CPUSTATS to prevent a crash) and I have NOT seen OOO so far. Thanks, Jakob diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 190570f21b20..51b68ef4977b 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -792,7 +792,7 @@ struct Qdisc_ops pfifo_fast_ops __read_mostly = { .dump = pfifo_fast_dump, .change_tx_queue_len = pfifo_fast_change_tx_queue_len, .owner = THIS_MODULE, - .static_flags = TCQ_F_NOLOCK | TCQ_F_CPUSTATS, + .static_flags = TCQ_F_CPUSTATS, }; EXPORT_SYMBOL(pfifo_fast_ops);