From patchwork Mon Jul 18 15:54:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Chaignon X-Patchwork-Id: 12921411 X-Patchwork-Delegate: bpf@iogearbox.net 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 967AAC43334 for ; Mon, 18 Jul 2022 15:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235065AbiGRPyL (ORCPT ); Mon, 18 Jul 2022 11:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235205AbiGRPyJ (ORCPT ); Mon, 18 Jul 2022 11:54:09 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0342B1C0 for ; Mon, 18 Jul 2022 08:54:07 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id a5so17670072wrx.12 for ; Mon, 18 Jul 2022 08:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jNOFWD6EWX/ilMsSDswwTAqMX/p75CHGacwLg212UIA=; b=pKtudd//N5O7taLzY08jZ7HXjO6PCiCDHPliOFecVIv+sDNVX+AyJXAt/6nVGWR3is h+5RS73wR/3i/YG9yUJP4MlWwILmmRLvFGYsbvV1bGEVmLsgG0dFPiTivgqQbrA5J/dj vz9nobADF59If0/0wLD3+bRNzsmUzoHY4tVVK6axeQEeWRnB29unNbiCvT6LRjrg4/XD r2Qmp+8Y3xniLm5gUt15YoYUdCMKzD4Q5Wv6Ypijmx2hfxFKFjfE9QKTGTxlV5II4ISs IGrp3E0Kud1q2XcoPE1EkOvofIn7GSpKJu83K6sxd/w3JMrHHHGGXOw2PChNqqDO1Ysz 95tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jNOFWD6EWX/ilMsSDswwTAqMX/p75CHGacwLg212UIA=; b=lQSPKyYDoHa99B4VOxBuXfoivnQccRMB0UUTzyBdHE9EO7Y2FgzgszSqa2Gqj1xxgB TKnH/WaDjNtV16H0NJOvq4K+VLPxCPrdOQcXI+j8Fn8DcbQ+d67wnctAxKr6XRENW3oi yhyXiBrVQFAl1eJEWm4Qc0a+jUAxCBstQexc+/IYlJxnLjoo0HBXcM/UvHHRBSLdjYe0 ZjHBqfeao+Mse9sUwFOuNyn91Pa1GA0WghDBI++dV9jt8STFwLs51LvWQMtFTpSo3juW ZnzUVplGh543tTVjB7SVv2sw+Q2kBiNnx49WGEqnWoroUqDExsFh9/Radz3Vx7RVL/EI VBOw== X-Gm-Message-State: AJIora/kbZzQAG419/7xVnakVSJk7AjwP/njOJul63HYfA6FKnpgtDXP BfYMPIVt8aKTXaYknDFfvzT3ZivOPBrtBnk= X-Google-Smtp-Source: AGRyM1tuUbXkTHmwSeQpNvkpX+9RV2rNX0WnzUhlbbdeXGqZ5TcgzBxdsITPDnCaw3Rv47uHxqm1Rw== X-Received: by 2002:a05:6000:1446:b0:21d:cfe1:67a0 with SMTP id v6-20020a056000144600b0021dcfe167a0mr13565811wrx.91.1658159646328; Mon, 18 Jul 2022 08:54:06 -0700 (PDT) Received: from Mem (2a01cb088160fc006422ad4f4c265774.ipv6.abo.wanadoo.fr. [2a01:cb08:8160:fc00:6422:ad4f:4c26:5774]) by smtp.gmail.com with ESMTPSA id h7-20020adffd47000000b0021d650e4df4sm11230963wrs.87.2022.07.18.08.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 08:54:06 -0700 (PDT) Date: Mon, 18 Jul 2022 17:54:04 +0200 From: Paul Chaignon To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Martin KaFai Lau , John Fastabend , Kaixi Fan , Nikolay Aleksandrov , Yonghong Song Subject: [PATCH bpf v2 1/5] ip_tunnels: Add new flow flags field to ip_tunnel_key Message-ID: <457f79e53a6b9f0921561bc796a49e917d131635.1658159533.git.paul@isovalent.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net This commit extends the ip_tunnel_key struct with a new field for the flow flags, to pass them to the route lookups. This new field will be populated and used in subsequent commits. Signed-off-by: Paul Chaignon --- include/net/ip_tunnels.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index c24fa934221d..20f60d9da741 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h @@ -54,6 +54,7 @@ struct ip_tunnel_key { __be32 label; /* Flow Label for IPv6 */ __be16 tp_src; __be16 tp_dst; + __u8 flow_flags; }; /* Flags for ip_tunnel_info mode. */