From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE6CAC433EF for ; Mon, 11 Jul 2022 18:29:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiGKS3X (ORCPT ); Mon, 11 Jul 2022 14:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiGKS3W (ORCPT ); Mon, 11 Jul 2022 14:29:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAD5A1275A for ; Mon, 11 Jul 2022 11:29:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 51B96614E3 for ; Mon, 11 Jul 2022 18:29:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61FB2C34115; Mon, 11 Jul 2022 18:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657564160; bh=fEgCzjV/7eisWm3F0bfE6x6eY/udqi64CeIF8jt9A1o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JrjGklWBg2ZUYOl0wEPb14xXMrLdFZNsGtujpCotXCf3BU5yiowJMpLyR/WKUNZ95 CpH5LRdMzkxO1Hwr5pOW94eAJupWvf6sKt4R3ZS6JzUydEFgULg0vZ/IyEAacNXN6W M4y6gokRZYAQW9hvrY/XDjzW4iTw8wKQGIXoqkmU2T6sks5wwsqT9gVQ5LmRNNvgT1 ysx4Yt/0z3ptOPYze11S2yqAw4VGO4vEIYhLWsUnGm1iHKw8B4jrmtQbI4+gpzD2Oc 2IiqFFdiJldUVUtRfUyD8IAyjgXciUNgNUIGSIQJ/jPcEqwL5FTvmD38UOkFxImhvf IGOZZ7d3GtrYg== Date: Mon, 11 Jul 2022 11:29:11 -0700 From: Jakub Kicinski To: Matthias May Cc: , , , , , Subject: Re: [PATCH net] ip_tunnel: allow to inherit from VLAN encapsulated IP frames Message-ID: <20220711112911.6e387608@kernel.org> In-Reply-To: References: <20220705145441.11992-1-matthias.may@westermo.com> <20220705182512.309f205e@kernel.org> <20220706131735.4d9f4562@kernel.org> <20220707170145.0666cd4c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sat, 9 Jul 2022 22:09:12 +0200 Matthias May wrote: > >> How should i go forward with this? > > > > I think your example above shows that "tos 0xa0" does not work but the > > conversation was about inheritance, does "tos inherit" not work either? > > Yes inherit does not work either. This is why i started setting it statically. > However I think I figured out what is going on. > Setting the TOS statically to 0xa0 does work... when the payload is IPv4 or IPv6, > which is also when inheriting works. For everything other type of payload, it is always 0x00. > This is different than with an IPv4 tunnel. > Should i consider this a bug that needs to be fixed, or is that the intended behaviour? Yes, most likely a bug if you ask me :S