From patchwork Fri Jul 15 15:01:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Chaignon X-Patchwork-Id: 12919351 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 39335C43334 for ; Fri, 15 Jul 2022 15:01:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231620AbiGOPBI (ORCPT ); Fri, 15 Jul 2022 11:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbiGOPBH (ORCPT ); Fri, 15 Jul 2022 11:01:07 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3967AC34 for ; Fri, 15 Jul 2022 08:01:06 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id d16so7067412wrv.10 for ; Fri, 15 Jul 2022 08:01:06 -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=3x+YM7a1x4GZKfTQerXh3xdV/n3rhT4J5GK1vUMPEnBz8iShqUsnZix5jhRQLVemDW PtzfIeTHN3t0aobVk6DmRqbgXa7XCulj6gnPCuQ7NFokMqFtakrrQtYw6K6gFvzgF9nE cktRwa6/5neoX9aJtW90I4ck10X5JTmNLLnxcCnp8fQKfgL2PGzEoYuoycrw8L32Yhaj Uw4p7Y2CVNgzDippCnh7YAeNdIP71drh3G8qwU2EaU31Nsax4nNe45CgctIbjR5/NUWY CoMGiWfzeFpbEuaAhpzYCjq6VK6ALa8Uxbk1Uf+PW9hEWlJGNS8fcvq4b6FPcIY2Q4dV RN/Q== 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=6osS+lyDVNsxbdgbWUcrhd/BQyVI4GMrR/utAVpZ0hqEkOrBIs/CuiwPEtmvZA/5tf QMQPucPUKrHo0ieJF/f95vAg6repvq33eosLk00SopUQZrieXkh/HlNLH60asgGT1Oag a+id8tzRPWDGfYFc6K996NVOVHUg3dvcyS+yHYWTFdNoBNWIDSZvWN7cbJLCfkyzKbOY JbpXY52dUOLqLbQsWKNRXFjQ1qkdRoadTwKiP0Si9x1gCoiy4FS0neibRc/iJQ8iAWG7 S3nrhJ1qCrsh8xLvbjT+nf9pZdyYXCUXX0bNH475UiHWZy+GWWcPJltP2dINZKCz0QRE R6Pg== X-Gm-Message-State: AJIora/0Y9/gpUhUyWLG+mimU5KjG4rUVnTqk7TBeNTxqJ07IatTm/1m EA0l506Pd9haEnmE4h6VxS4P X-Google-Smtp-Source: AGRyM1srnY/B9l9X6av7ND4wDeY38iSSKSh/7xiN/bXpISRK3guMjtmraKsZ8m5U0xWzZ7mfsCyioQ== X-Received: by 2002:adf:e702:0:b0:21d:6900:ea1c with SMTP id c2-20020adfe702000000b0021d6900ea1cmr12563421wrm.620.1657897264879; Fri, 15 Jul 2022 08:01:04 -0700 (PDT) Received: from Mem (2a01cb088160fc0095dc955fbebd15a0.ipv6.abo.wanadoo.fr. [2a01:cb08:8160:fc00:95dc:955f:bebd:15a0]) by smtp.gmail.com with ESMTPSA id r21-20020a05600c425500b003a2cf5eb900sm5292466wmm.40.2022.07.15.08.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 08:01:04 -0700 (PDT) Date: Fri, 15 Jul 2022 17:01:02 +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 Subject: [PATCH bpf 1/5] ip_tunnels: Add new flow flags field to ip_tunnel_key Message-ID: <457f79e53a6b9f0921561bc796a49e917d131635.1657895526.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. */