Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2906285pxb; Tue, 24 Aug 2021 10:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuqULNcp8dPqp89vnFTYXR3Ps7INwgStN3Rf3EWVxFfKxZgUwKuzg0HOTWnBVbf1BnNQEk X-Received: by 2002:a05:6638:168f:: with SMTP id f15mr35469194jat.85.1629825512632; Tue, 24 Aug 2021 10:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825512; cv=none; d=google.com; s=arc-20160816; b=sOt+XWbGWy2vKA8Sspi1XILKATuRBc8Wb2VAV8tiGEGtdD6sfDmS87IEnr+M7PPqZD DjKXRaNPFVougOcvzYnX+BiT1qJhv1FtZinmhMC7akIMosqTgn7s8lFdx9Wj8DSxt+md AlIUDkYCGsyNxulaZuNVN/bbkPuSGNmH67Ix883Q8aCYI6Mb2vsEXO3WPF7HFBxrsR7a NSFL4HlCpNownRpnMuvqDaGxwCaFPF5j8WdiIJ/cQb77l+hoY4M5pV2DHUt/OSqMCbGd zFFW0eHtSoX/BXDT2nEy62O9mU2qvQ4pcEtFTl/QDwp3r99rYpS4A+65Z99SEbhSpJIM gaNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fcE9OeryuRBxLF1dR4AWouLSSsC/bOpMbPrseyF5qrQ=; b=OZLi5soiCqEl9ufkpllGggMs/oggf/2yNOSHy+HzoP7JYNWVYjOLrxheejwp5cYGAi gvfJCsWF9nnQ9jyd30SmB9V7FEyxVGqxwW2gzKvyRPnKolHJRKyZWF8nnEGM8L8Y/DcJ xTfozP5SQ/88j6iTr659gwiUtzpIkShqebXjc+BGlx3mEnA76P9m2Xu3w0Sg060PKsY6 Qr+bX/NGK3yFVd+KXjMEUBEBT/oSBckV0lKyZokrhdP5OZz3WkDjSO/a2rA08zDwjirX P7jmUTfy73XmhGMaQfmwAz4CvyzjQWyDy1ptMINMWF/mLuaAP3teqUkLdm368D9UxBuW oKTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=avL8G5hf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay23si12144642iob.33.2021.08.24.10.18.19; Tue, 24 Aug 2021 10:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=avL8G5hf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233804AbhHXRSD (ORCPT + 99 others); Tue, 24 Aug 2021 13:18:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:55478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238413AbhHXRQD (ORCPT ); Tue, 24 Aug 2021 13:16:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F329061A8B; Tue, 24 Aug 2021 17:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824509; bh=IFWUA4+G9fEBgOZWy1Vl9HXWNbw5fFgWb7maZ0Vpv3o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=avL8G5hfhv+/WjETKlNXutDdkTtZkmDHaHMxsmxH5YfX0S8rUv6B/ZNQgtKaBvYJ4 IQ++WQct+4agQYxowudYEL+SsN6Lvx/H4TI4NQXk/Y4Ae+dtQ/vcVgmcxbyb3hWbpA 0Kq2v9BXS6qpj7GVyAPPNCszlEqJ/ykNNwDNghtl8i9gQMe1uqaaSEEXe1n8hnbyrT uZBCINwwH/vQb/GRoYUilnrqKRgNYSmA25ZwUeHukTTN/SqZmxht3XnTOFMUlVR414 /bhjmn8tSUI7P+DMI8zXVx+4HrvmixangEttOxWFk0QAwCKt0+KIoHpPOj3QUdWsgI KM4Qn1aimlWlQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "kaixi.fan" , xiexiaohui , Cong Wang , "David S . Miller" , Sasha Levin Subject: [PATCH 5.4 42/61] ovs: clear skb->tstamp in forwarding path Date: Tue, 24 Aug 2021 13:00:47 -0400 Message-Id: <20210824170106.710221-43-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170106.710221-1-sashal@kernel.org> References: <20210824170106.710221-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.143-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.4.143-rc1 X-KernelTest-Deadline: 2021-08-26T17:01+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "kaixi.fan" [ Upstream commit 01634047bf0d5c2d9b7d8095bb4de1663dbeedeb ] fq qdisc requires tstamp to be cleared in the forwarding path. Now ovs doesn't clear skb->tstamp. We encountered a problem with linux version 5.4.56 and ovs version 2.14.1, and packets failed to dequeue from qdisc when fq qdisc was attached to ovs port. Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC") Signed-off-by: kaixi.fan Signed-off-by: xiexiaohui Reviewed-by: Cong Wang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/openvswitch/vport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index 3fc38d16c456..19af0efeb8dc 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c @@ -499,6 +499,7 @@ void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto) } skb->dev = vport->dev; + skb->tstamp = 0; vport->ops->send(skb); return; -- 2.30.2