Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1684445imu; Thu, 10 Jan 2019 00:57:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Z7uEHrrHX287Dnny/xgmO8fWc61vL5FGVNb5GYEqZz+LmYT6eRpAhdJ85qpNJwcIaw1mz X-Received: by 2002:a17:902:346:: with SMTP id 64mr9720918pld.337.1547110661538; Thu, 10 Jan 2019 00:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547110661; cv=none; d=google.com; s=arc-20160816; b=aemqYzLkLYBb22jLxVsbt+IfY+pQoU3r0gFdeiUYZpG/+nImMAWCSFHGt4z1/UkcF5 XRo1zdKi5VwI66Z7Mxc3rGOEzvyuyQEVdJQXg94ItUZIeSvQlDsAD785RBXFU/36l7dl AeWnljgmeTEF6SwqvoSOh8zsqgBw2Zd7HogCN6NkQMOSInA8z3LnvYTlO8rcEIck3Itg OTbhaJHfn2f9e2gJvsqBm6mUcKaWsSFakuznkfAmCQZ4JI5hkOO8wpxUwtqHzZEZ/EBs 7TO1oyT99FuW4tV9q2O7F5fUtt4JAz39jpD867e7Sfml7y7A1YW/t/5t5Wi/ASvROUiE QjkQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=KnwKVGOEWX70Dp/gr3LGb5ZoNJK6qaUJl3KRFWjgZlg=; b=HMEemehIeTtwnPSEuM+XUpSvZWxehLGdfaDfzTgHiaaa/FNte3nQlEeLAC5S2hl5NH fh33UEvqwMcvrtlsyqAaTz6sOKQZgjU1hIhmA+weGcjWpUG/YCo5vLUMBqCi+AOj7ivG DugnZG9Nsvc3QZ5IHbzTtcFDhRaw/NnHf45zL+b9mJjxf6BpQjzIE0g2k+JXerXEvKgH yhegr/eiqqROAfNa/CSXyUyn88UraXbR1cwv6F0LW0Gps7O5bfocdYlgt29i6l5Awzti k9zxRLiDtLiisu8B7IgMyZE6njMe/UdMJV8+QvkLlef2811pFIU8A03R0l4VdxxJnLTo 8dQg== 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 o6si21616205plh.23.2019.01.10.00.57.26; Thu, 10 Jan 2019 00:57:41 -0800 (PST) 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 S1727680AbfAJIz1 (ORCPT + 99 others); Thu, 10 Jan 2019 03:55:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50972 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727435AbfAJIz0 (ORCPT ); Thu, 10 Jan 2019 03:55:26 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C2867FD5A; Thu, 10 Jan 2019 08:55:26 +0000 (UTC) Received: from localhost.localdomain (unknown [10.32.181.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id A2FB05C6C1; Thu, 10 Jan 2019 08:55:25 +0000 (UTC) Message-ID: <351f5da149072c8c1165f8f205ac5c852a92dff8.camel@redhat.com> Subject: Re: [BUG] moving fq back to clock monotonic breaks my setup From: Paolo Abeni To: Ian Kumlien , Eric Dumazet Cc: netdev , LKML Date: Thu, 10 Jan 2019 09:55:24 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.3 (3.30.3-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 10 Jan 2019 08:55:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-01-10 at 09:25 +0100, Ian Kumlien wrote: > On Thu, Jan 10, 2019 at 6:53 AM Eric Dumazet wrote: > > On Wed, Jan 9, 2019 at 4:48 PM Ian Kumlien wrote: > > > Hi, > > > > > > Just been trough ~5+ hours of bisecting and eventually actually found > > > the culprit =) > > > > > > commit fb420d5d91c1274d5966917725e71f27ed092a85 (refs/bisect/bad) > > > Author: Eric Dumazet > > > Date: Fri Sep 28 10:28:44 2018 -0700 > > > > > > tcp/fq: move back to CLOCK_MONOTONIC > > > > > > [--8<--] > > > > > > So this might be because my setup might be "odd". > > > > > > Basically I have a firewall with four nics that uses two of those nics > > > to handle my normal > > > internet connection (firewall/MASQ/NAT) and the other two are assigned > > > to one bridge each. > > > > > > The firewall is also my local caching DNS server and DHCP server, > > > which is also used by the VM:s... > > > But with 4.20 DHCP replies disappeared before entering the bridge - i > > > couldn't even see them in > > > tcpdump! (all nics are ixgbe on a atom soc) > > > > > > I'm currently running a kernel with that patch reversed but I'm also > > > wondering about possible ways > > > forward since I'm reverting a fix from someone else... > > > > I suggest you use netdev@ mailing list instead of lkml > > > > Then, we probably need to clear skb->tstamp in more paths (you are > > mentioning bridge ...) > > > > See commit 8203e2d844d34af247a151d8ebd68553a6e91785 for reference. > > > > Can you try : > > > > diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c > > index 5372e2042adfe20d3cd039c29057535b2413be61..bd4fa141420c92a44716bd93fcd8aa3d3310203a > > 100644 > > --- a/net/bridge/br_forward.c > > +++ b/net/bridge/br_forward.c > > @@ -53,6 +53,7 @@ int br_dev_queue_push_xmit(struct net *net, struct > > sock *sk, struct sk_buff *skb > > skb_set_network_header(skb, depth); > > } > > > > + skb->tstamp = 0; > > dev_queue_xmit(skb); > > > > return 0; > > This works, and so does: https://marc.info/?l=linux-netdev&m=154696956604748&w=2 > > Pointed out by Paolo (tested both separately) Note: I cleared the tstamp in br_forward_finish() instead of br_dev_queue_push_xmit() because I think the latter could be called also in the local xmit path, via br_nf_post_routing. We must preserve the tstamp in output path, right? Thanks, Paolo