Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1254234pxb; Sun, 19 Sep 2021 10:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwssvcj+wu4bOOBxXYsHIBKn80lr9EdVXlDMqgpfyXMjIvvnUmep6XekrPsYnEwqfHb3HI X-Received: by 2002:a5e:9810:: with SMTP id s16mr779412ioj.171.1632074370657; Sun, 19 Sep 2021 10:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632074370; cv=none; d=google.com; s=arc-20160816; b=vebYMPFkCnvv6/n+pqhOmzYHtNZYbdrpO0ggMrTP0STM9P4xhr2Y4G8fUJ+Y8L6wBh g6LklASWtJbX1rcKCgm9SldiJc9TVPZWcC6gt/m2sAjKtAeQxF3hhKNRBOqAn+j3zKVl NiO5cQEOVZ0Z/bjrL8m2ptgWknm9KXuRfROWoSMjbYFlIiom3ssUWAC61syxdZeE7Q6a N9N/3gcAe3JN8Z38I0lLD53g4bne73dFlvmtY92ndCqivktXSeniAgWSjgRugHvd5vPT NceUhEQH6sjVBEQj/i3sE2TbcDY0IVgY5RIY2N05BsVyVYl04ufNhP3pdtaJ01MJ15Am S1lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=HDkakuhEl/Dan5KAuhVlwRPEvRkbpGxHTjJ5gNV/EIk=; b=KLvL7YI8qXCMlUKPEYJGwfCXV30CEFTsXz5mpdea+3f1bCNgkhL4u0P7z665UB2/in inXu409BKinmaGYauzHGIaU+9lQ5TXdJ9uz/maTO8KJmb1/ovS/XCJzMvJH5xBJdREdU ZauReNwar84qpdE5bgtv3nq321mVWf5HcXuEOuhFLlV+T21IAdlEO5DijHVUm8qu4QmJ phePf9l3yOE+rBM7v+w8Pz6r1qs48y3m0Ci9Z55iVw9w7kTwY0TcfkAJ4dzWPsIuczi/ sWixWc5A2SgECNY1EZf3RvwpwjWkR7QEt/plATHOovXn9aJZOCMT9l7lQycFxLZH4Jdf 8u5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=WVeaQ9Sr; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si9028640ila.182.2021.09.19.10.59.16; Sun, 19 Sep 2021 10:59:30 -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=fail header.i=@gmail.com header.s=20210112 header.b=WVeaQ9Sr; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233811AbhISPpd (ORCPT + 99 others); Sun, 19 Sep 2021 11:45:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbhISPpa (ORCPT ); Sun, 19 Sep 2021 11:45:30 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2BB9C061757; Sun, 19 Sep 2021 08:44:04 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id 194so9147913qkj.11; Sun, 19 Sep 2021 08:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HDkakuhEl/Dan5KAuhVlwRPEvRkbpGxHTjJ5gNV/EIk=; b=WVeaQ9SrUmuZi0cz8l2Sq/poppYj+QuHxhOuKQXs67o20rWjkzR/ki56QVKdliuUKT hCEWO7y3AmTgt9our3tVgZrxgmutzSam9XQ+4VuwGKE6CkKc6Q28F7Bfd03i5R7Gpr47 XSNpIqhIoVgNc2zCyYmtjV6B/9ouGlG1unCUypji9x5ZmaBrPBDHD1nDrku9yYxEVZlE cQfHBnZhvamFFgnr4iQmicx3yfmX/NMb4L1X7DTdBIHRXtsOgpkt4YFFZXXpUpOO0dnK nGbsTtLts2AkRWooJ6cwjigp+z6/SfysKNpeCoHvuHe5NV8oPwdPCJSwJPSP7/4+xSxW U42g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HDkakuhEl/Dan5KAuhVlwRPEvRkbpGxHTjJ5gNV/EIk=; b=AG2LNCZB9O9eOnoWU3MjHEOcN2P0ZCPqCmJQ3dBYq8EfTSqJ/c8Exr1DGE8ra7oKfl VqtoG35QSM25ORIkfZPMeA+3fsMa10UmV0d91/76EBvXk/ByNDGRrsPxjm0bT5Tf7FPo FThTrQ5jCX0Ohj+OFObo5MmPldnKEsHDn3xRK9FIuH/I6HpviH9Lc/4r8QqET2diTeMR nZgMXkzA6M15uCg974ChqJ0e/8ynTotavgJzfDhjNP269b4Kz346rwRHeIR1XtUBw7jc BjGy72yU1lteeXIZrQRmSvPPiOw1bsB00L/1Bjj5y1rqqfAbur1r4LJuYfkqFkZIvxCy +WZA== X-Gm-Message-State: AOAM531O0ZyPfrjD2yLi7uf+20X97MvBTbi/Chuz6Wx4h8jcequXhbIG CE7KhAS13YBaFXYO+oJ50IWZYFmC8YDCgA== X-Received: by 2002:a37:e17:: with SMTP id 23mr18365389qko.301.1632066244022; Sun, 19 Sep 2021 08:44:04 -0700 (PDT) Received: from luigi.stachecki.net (pool-96-246-29-33.nycmny.fios.verizon.net. [96.246.29.33]) by smtp.gmail.com with ESMTPSA id bl36sm8849057qkb.37.2021.09.19.08.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 08:44:03 -0700 (PDT) From: "Tyler J. Stachecki" Cc: fankaixi.li@bytedance.com, stachecki.tyler@gmail.com, xiexiaohui.xxh@bytedance.com, cong.wang@bytedance.com, Pravin B Shelar , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, dev@openvswitch.org, linux-kernel@vger.kernel.org Subject: [PATCH] ovs: Only clear tstamp when changing namespaces Date: Sun, 19 Sep 2021 11:43:37 -0400 Message-Id: <20210919154337.9243-1-stachecki.tyler@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As of "ovs: clear skb->tstamp in forwarding path", the tstamp is now being cleared unconditionally to fix fq qdisc operation with ovs vports. While this is mostly correct and fixes forwarding for that use case, a slight adjustment is necessary to ensure that the tstamp is cleared *only when the forwarding is across namespaces*. Signed-off-by: Tyler J. Stachecki --- net/openvswitch/vport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c index cf2ce5812489..c2d32a5c3697 100644 --- a/net/openvswitch/vport.c +++ b/net/openvswitch/vport.c @@ -507,7 +507,8 @@ void ovs_vport_send(struct vport *vport, struct sk_buff *skb, u8 mac_proto) } skb->dev = vport->dev; - skb->tstamp = 0; + if (dev_net(skb->dev)) + skb->tstamp = 0; vport->ops->send(skb); return; -- 2.20.1