Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp441420pxb; Thu, 30 Sep 2021 09:13:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwqCyAtf8Y5LFBwhCc1UikkONcPZaFPwQRJfbvE0WCm1PmvhRT31IvqHGGfP4bLvB1oT9x X-Received: by 2002:a65:5ac1:: with SMTP id d1mr5698673pgt.246.1633018436039; Thu, 30 Sep 2021 09:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633018436; cv=none; d=google.com; s=arc-20160816; b=somv1jLzaCwPiT8bOrE73w6Dk4oBGdd1GKnO+te2Gmp1T7/VpNGVWyTgzyOesULofi MC56rJAvQGI3dLlK00Op6hBpCdJNRZd4Au1hczM+Y6kShrklOo33iAmeIIFdRlivJs4E aJkbsFSyXbSMz+ELdw5TWSPfGUG1Y3wEx644CcS2JiqQsqsBwdrb9WgLw10USvbvzeQR rer3itm+fSJqEP6RgEzp6J4IPv/Tn+2GPO/HQVDG4ZQAntxkERd+02KUSvkYZpb2gUw6 YPctf81z6JgQOPYsfkAZz9hCQF2r6Hf6vNC9W1wwQTN2Ny76dXEQ5CeeE0DhVdkUiyhl gQvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a3vOhd3AxRBGGkQ1Ffsi6fx5ALF3ffB714UeOL8XqBU=; b=TXhvICveKjcImwF9saOxg0j4ZLGFed7c8IBB9Hs4okjA0Idm+pQ3m+f+/OawfT6Lys Bc2jfxMC5U3ZozLaa/cppwZsyvGPcwGQoGu/u+DpPihsTVS319QzWbACzQqGrGr9ZZ6C h38bv/RfcD1AwqYk3jDIefoWSq3AwG3IWemJ/TYF+lOWEY3XJTM/eJzZBl9ZYr60iogN +jEVKe9Ny106KbSb/5HTzSfMwdakklLzII99j/5vBego26LT4Zpm/e5DxYSBLZOFeFJA bvcUWAde8IOxM55O5kIutiWo5/1eUk+B/s6SL/QGRVv9AChQHMT4UzE6Q5d+WywENeQ1 W58g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nEkTOTrB; 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=pass (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 a10si822pjd.173.2021.09.30.09.13.42; Thu, 30 Sep 2021 09:13:56 -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=pass header.i=@gmail.com header.s=20210112 header.b=nEkTOTrB; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348893AbhI3QNp (ORCPT + 99 others); Thu, 30 Sep 2021 12:13:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348582AbhI3QNn (ORCPT ); Thu, 30 Sep 2021 12:13:43 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5429C06176A; Thu, 30 Sep 2021 09:12:00 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id b15so27347352lfe.7; Thu, 30 Sep 2021 09:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a3vOhd3AxRBGGkQ1Ffsi6fx5ALF3ffB714UeOL8XqBU=; b=nEkTOTrBqW70y++KGcwtoP3dePkqsP3/baqjSZkpHheBCDHsP1siCD8Y1BFBU9jQyO 8UDGfHNDWqE+AGmDygUGzFuWfe4t78xEAEml5WGju36hpmeaoWb3OUJnAF/XcATG/6dC 7Iik7Qw1LiXXqOPtoFDBmwRjC/kzsqcgv8KC5vD5L3PRO5s42MvzcApCwwp5ybfaO16I J/z3t5w8djS3xthCuwDBzJkWmpueYK0RnE8w0RQLcCEXHtBKAUHzKZM493bI/v4xYLtX Ly/+1pxqoa4gUtm9ct106ZFK84CNFVN7k1jEnyb6fStPe9WD89oLs+QnP8b40on/yeO4 JOkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a3vOhd3AxRBGGkQ1Ffsi6fx5ALF3ffB714UeOL8XqBU=; b=nelmMyeJSE+WjV0LozY0NDJHsS68KZWwLzoY9P4a0uuV5ATmai/5G4r39m57c8xsZJ 5VDdiUYqLnZBYA0Qy6LK3tvnMkjAv7LlSc4YJb5l2gJ3g2FW14DMS7th2x0x1d5gqVKV 7EAuOwMzXu27J8SmNqPkE29IIbRpctgIKmCIJv86Qp5a+b2wM6efuiN7fP8tEB6afBl1 /X12O/jNYKLw+wY2u1kPeuPtctHFqZ4ZXryx5yx4zcD0fM5x8zonHf23FK6/AgKE8ZJv Zk3nRA/65T8TeSDdU7IbuGwN2Qr2cJvaeFsFVQ+VyWTY15tOMomJkhEJ2ocFaVg28eVW O86Q== X-Gm-Message-State: AOAM530IkTMe+ceMvVY8ebatr2ACn3+kE0nDgbiwSXTeE3Mon5/6EZhG GxBfkh/s6Qb1fCQ1byKa7TEq7fgv2DNpOu5xeSY= X-Received: by 2002:a05:6512:1052:: with SMTP id c18mr51516lfb.161.1633018319217; Thu, 30 Sep 2021 09:11:59 -0700 (PDT) MIME-Version: 1.0 References: <20210928194727.1635106-1-cpp.code.lv@gmail.com> <20210928174853.06fe8e66@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20210929061909.59c94eff@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210929061909.59c94eff@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Cpp Code Date: Thu, 30 Sep 2021 09:11:48 -0700 Message-ID: Subject: Re: [PATCH net-next v6] net: openvswitch: IPv6: Add IPv6 extension header support To: Jakub Kicinski Cc: Nicolas Dichtel , netdev@vger.kernel.org, pshelar@ovn.org, "David S. Miller" , ovs dev , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 6:19 AM Jakub Kicinski wrote: > > On Wed, 29 Sep 2021 08:19:05 +0200 Nicolas Dichtel wrote: > > > /* Insert a kernel only KEY_ATTR */ > > > #define OVS_KEY_ATTR_TUNNEL_INFO __OVS_KEY_ATTR_MAX > > > #undef OVS_KEY_ATTR_MAX > > > #define OVS_KEY_ATTR_MAX __OVS_KEY_ATTR_MAX > > Following the other thread [1], this will break if a new app runs over an old > > kernel. > > Good point. > > > Why not simply expose this attribute to userspace and throw an error if a > > userspace app uses it? > > Does it matter if it's exposed or not? Either way the parsing policy > for attrs coming from user space should have a reject for the value. > (I say that not having looked at the code, so maybe I shouldn't...) To remove some confusion, there are some architectural nuances if we want to extend code without large refactor. The ovs_key_attr is defined only in kernel side. Userspace side is generated from this file. As well the code can be built without kernel modules. The code inside OVS repository and net-next is not identical, but I try to keep some consistency. JFYI This is the file responsible for generating userspace part: https://github.com/openvswitch/ovs/blob/master/build-aux/extract-odp-netlink-h This is the how corresponding file for ovs_key_attr looks inside OVS: https://github.com/openvswitch/ovs/blob/master/datapath/linux/compat/include/linux/openvswitch.h one can see there are more values than in net-next version.