Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp753950pxp; Fri, 11 Mar 2022 14:14:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4IiY0CG6IY+RIDzuvyZlwoO/+BHIvgBE08dxPH+MXTlKjqppwZud/4pXm4qgfqaOwFJmH X-Received: by 2002:a63:874a:0:b0:37c:7fab:50fe with SMTP id i71-20020a63874a000000b0037c7fab50femr10080538pge.93.1647036846704; Fri, 11 Mar 2022 14:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036846; cv=none; d=google.com; s=arc-20160816; b=oK01ws+9qUPHZreATA0tIUOZIrhAlVGihHA45/PpsGJ02JQkeFZiAhJj/eP8Ja8HJM 4VYm5nFRtjxSoegWjivit2SXnY1uo5PjeGgjtB9k2A/8UJ8mRizP+YcXKylTkJrmik8O FccOkbswnTPqDj/YKRSEhlPcKmGY051qKysj6UhSt7fwzVhqtAC2MxJilntrorIiIXMh ciHQNUdLyC3aQ5qQlzRs+QAhxfsbykfkaKjMHSdqzwRTbF2xlSNBV7rcebZIvVUdHquv FJY2dpET3whRUNuvjfMxwXSO2UPGUlkW0WoAtJJRVUz+xwQSs+KF1tYM8vY3GSqi6fDD EUCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kJl8Llq7w1+zvzDWOcidwxfwqC61wi6eDhVhAay4ElE=; b=GrJnxb4cPd1/9G2ueS/fMiPdV14EyG4OBuq01wj1nx6mYYIgBWXGa5d8M80ykfSQ7b kBBR07E8nU/n0LiPVNO4jkKDDmgUfZtEBTlSeEuw0eV7xSqooFeYwuGxPvXxDcuPZUao KWtohT46yOQQl3gi0BVkCkMUs2v8cdx2Hq+4jdjNqToV3OVI5UgPZXoqr9x6A+m/+NHZ GweeOj57nw+BGJ3PH7akr0T4nCoFl5nX9Bh69ApB2Pk62bUgZEirN+Hk8nwVDLbXgvJM QoEo3Mb+uHOgTUp0nvwpQsK9l0qglarwQiFYUhg46FxnF2Kbb7QZ6vO9a6A1zm3aBC1V ZyDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpfkPI2m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b6-20020a170902e94600b001516cec04adsi9586449pll.248.2022.03.11.14.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:14:06 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpfkPI2m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1BBFB218CE7; Fri, 11 Mar 2022 13:23:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346077AbiCKDzi (ORCPT + 99 others); Thu, 10 Mar 2022 22:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238284AbiCKDzh (ORCPT ); Thu, 10 Mar 2022 22:55:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE81218FAEB; Thu, 10 Mar 2022 19:54:34 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 5824FB827DB; Fri, 11 Mar 2022 03:54:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FF23C340EC; Fri, 11 Mar 2022 03:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646970872; bh=T+/Lld+hq4lV5n+RrrbXPXhhkwm8I168aObglERBuwE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OpfkPI2msYKkkC5nZeH8IsoDx+YzlKIEfI7skQRpiXnE1fNld2q6/YAaAzwH0ca9r 0zGObTOwzvHCl53JWLqCpeZjSj+az0KeFK4KxTxcqeeadS91X9ZhZwnsv3f54fGc4H Sj9fRhMZlztib/eHZsd5TKIioVs8TI4QgA4QZK/StDYrBiD5HC4JTV5aiwpt8/Frz1 AvP7ZrU7PV31xMrlPTYJYhsOfUMVzJF6h+lpu1hsrkNgvqjW7Ht5OccT4RruxfdZYt ZlgilyAsU7QYDnW4KZVMIadiqy2IBE67Mmb2EuRPlnI7QLRMeBbGabvNmzydO9IdTw WB0KVYpW1FxpA== Date: Thu, 10 Mar 2022 19:54:29 -0800 From: Jakub Kicinski To: menglong8.dong@gmail.com Cc: dsahern@kernel.org, nhorman@tuxdriver.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, davem@davemloft.net, imagedong@tencent.com, edumazet@google.com, talalahmad@google.com, keescook@chromium.org, alobakin@pm.me, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Mengen Sun , Hao Peng Subject: Re: [PATCH] net: skb: move enum skb_drop_reason to uapi Message-ID: <20220310195429.4ba93edf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220311032828.702392-1-imagedong@tencent.com> References: <20220311032828.702392-1-imagedong@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Mar 2022 11:28:28 +0800 menglong8.dong@gmail.com wrote: > From: Menglong Dong > > Move the definition of 'enum skb_drop_reason' in 'skbuff.h' to the uapi > header 'net_dropmon.h', therefore some users, such as eBPF program, can > make use of it. BPF does not need an enum definition to be part of the uAPI to make use of it. BTF should encode the values, and CO-RE can protect from them changing, AFAIU. I think we need a better example user / justification.