Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp109068lqp; Tue, 11 Jun 2024 16:56:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5bEbH795aZF+iGEfWMRU6I1OumwfrsOhWidjxCeuudAW5R3y5C0iOW016liXKZjIXQtLKahJHli2EOI5RazLDXUeM5nvHd/4lBr64Yg== X-Google-Smtp-Source: AGHT+IFxHPrWeSA7Oiz9g3X3RsMsM8nB0UKjUSY3oOf6R3HcWbsGuk2NFrZ3zwwN0Jt63BoHODvT X-Received: by 2002:a17:903:22cd:b0:1f6:f1ec:916b with SMTP id d9443c01a7336-1f83b565ad1mr5090365ad.6.1718150187780; Tue, 11 Jun 2024 16:56:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718150187; cv=pass; d=google.com; s=arc-20160816; b=l1JKfcHsd76N6Ml+5TUxNZvnfXdHZVnadTNbimStqd5g1awFru5pbcBFZmyXfrwSyd t2OSIqhf+gpKbKJUQecNwGOdiu1qyAKn/lqLXSPJ7e/karSr72jqAQU5V81FAcRXIvaw xvat4PQhc4zGpuDJpZZnnRKz43o8uhjkhjvk9tHs9JPVLMi0VTpMIOFgaL7XwS8ZHQfF w6wqVQEKJNJXRmoPbhBywHARc1Ngld2KGrQtJiUT0CUMOCVe4hDv88ERQgHSU2Zzx2gA 4s1ZtBZqFZFlyWnncJmcJ8h9UFa4F5Pt5TaIPSBxxaA3dCqwcQqCKPW/VYEbc7Bl27Bb dhNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pE03JHyiPRXFlERn2wLDsqIr9VdjLuVdbfa73ieaU0c=; fh=frjvUbsquGPigjV6mdI2Sw3TyI8amMB5MY8lXlm26fI=; b=p7D8a4QCgk+0jG+w8szfbkfBIt1B8+VDLcHG5nTOcZoiqXmoDiBOJqf8DZcgQPqiVa T9y0oP+YsgeyK9bL/6fUGrPujpV+TBowtSTW7lQk3bC8U2UZI4KzyIWdL4cUDuntncc2 YBUiwRvBEfrh7Hm6Hg+xAnXDzNzZdvGsRr1KbvM/kuBg33FNshKYTFqoDBToxa3fo8ZG A0GkuXBZsyKoNmrEbOwwrg+fXgeKMSWcZMHQ1ZnFTbQ70dnrtdaLHXUJPkunheHC8CJg hiCrm1XM2wBrtIX5U2ml0AzLEGa0ABtaoB/BjmxGzO8OtgygU5w4tWbuAb8q8Uztlk/o /a2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b="jjXCc/WL"; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-210722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7f293bsi87134125ad.456.2024.06.11.16.56.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 16:56:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b="jjXCc/WL"; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-210722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B9B728522C for ; Tue, 11 Jun 2024 23:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17BBA15884F; Tue, 11 Jun 2024 23:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="jjXCc/WL" Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC83D157462; Tue, 11 Jun 2024 23:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.104.135.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718150070; cv=none; b=QTqFvwShXxIeOAubQqHiGgLNfjp+9K1EQeI4BcHFwND1Sg802UHS6Jlk7BrCFgjrE9HSlNIOzB05feDNSGAhOHRHLj1hiSOR5o1nzd/vEdoO0i6soMJCUouO7yV9pGcfWecb+MkFN6JCHifNrbkN+3AG+eYXOCX600/wsBzVawQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718150070; c=relaxed/simple; bh=imPL47eGO9aBrxJvP1M11oZoTr+RAS2vWYBlCDgWnjw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gx1cln2K1k9IXHIRIoHD/3EMY01c5CA/hXWGzxzcafHDNFE8mV7CgXLqLoKUQekEmxzG8xRegJimoV60bAhFrzPLA3N7eiunPEPMt6uiD5Ad921VHgOdNo7HXTLh2zhyWB5WjMQFxsUxud4jInAYaYnH83uvIny2JQU5aNMCFVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net; spf=pass smtp.mailfrom=fiberby.net; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b=jjXCc/WL; arc=none smtp.client-ip=193.104.135.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fiberby.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1718150060; bh=imPL47eGO9aBrxJvP1M11oZoTr+RAS2vWYBlCDgWnjw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jjXCc/WLG+elWeHEXRqlM9m72b/JT4CjdV5amLLQhvEOLrpe4Vuw3kYHnGeoir+nh RXTrIGbYueRxQ/O0G+GPvEF68tFT5aOyR0ULP25gsdg34HkWSUc+K29zqP/N207uQ4 +1nBVsh+A/YBMaudbCTYyppaAavB7v53Znc//WfHJ7+vR9cbDFp6dd8z/BLPjAWGhM P52o08a6cTVXpX2wrscQf/1Eqd6CE4n4wHNFt/chvD/EWDZpWmv0cfXVksTnBKCLLq BiZCItBkGwLraWCKJDK3XGSvqiYuwsGos5D5tQ+Z8X7BAQ9460/cjdM4zLqk9amnfg PpNVLPA336G2A== Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 7CB87600A5; Tue, 11 Jun 2024 23:54:17 +0000 (UTC) Received: by x201s (Postfix, from userid 1000) id A8D492032F8; Tue, 11 Jun 2024 23:54:00 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: Davide Caratti , Ilya Maximets , Jamal Hadi Salim , Cong Wang , Jiri Pirko Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH net-next 9/9] flow_dissector: set encapsulation control flags for non-IP Date: Tue, 11 Jun 2024 23:53:42 +0000 Message-ID: <20240611235355.177667-10-ast@fiberby.net> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240611235355.177667-1-ast@fiberby.net> References: <20240611235355.177667-1-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure to set encapsulated control flags also for non-IP packets, such that it's possible to allow matching on e.g. TUNNEL_OAM on a geneve packet carrying a non-IP packet. Suggested-by: Davide Caratti Signed-off-by: Asbjørn Sloth Tønnesen --- net/core/flow_dissector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 5fac97dbbd606..41311c8b0b2a4 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -434,6 +434,10 @@ skb_flow_dissect_tunnel_info(const struct sk_buff *skb, ipv6->dst = key->u.ipv6.dst; } break; + default: + skb_flow_dissect_set_enc_control(0, ctrl_flags, flow_dissector, + target_container); + break; } if (dissector_uses_key(flow_dissector, FLOW_DISSECTOR_KEY_ENC_KEYID)) { -- 2.45.1