Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp688936rwb; Tue, 4 Oct 2022 09:16:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ybm1jSar4jXB/+P5JLESp1u57loy2bgbIofVMaGBGDvz+/lFtq4qwLWz1CtOQ6de/TKtE X-Received: by 2002:a17:906:9b8a:b0:783:18c:88ef with SMTP id dd10-20020a1709069b8a00b00783018c88efmr19568452ejc.419.1664900190031; Tue, 04 Oct 2022 09:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664900190; cv=none; d=google.com; s=arc-20160816; b=nHP3s5erijnt1YeTjYnagDXHu8q4ETwHD77ZKklLn96U0BatZHZEQzaagDIDyfltKR dzl7sID+uy+Jydboy1dTmI0o4i9d6br8yOQ2YZcWf0O5862WQV+nSApqz2JY4y2UzEKW OdsudPc/8zW9cRKQS1c1KVbu2gnnw1UTBVBEJtZRxmG5krojozQvuvSbhcb0vqaDeGh9 flVARLqhNLJyS3sowyaHc6amjvjOpO0b/3mW0uoo/D2fk6Hhqg489v2cjEO5pbVKn43M TDdacf/MFaeF+AcleBryecyJfUlLgJfH6inRMTCcx2WW/olhG4uwrc3iiHoD3ItuBFEc P5Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from; bh=fwcrPAI2nXKz/J+AQRZYFxED/YxrkCj7IobRzRQRgAw=; b=vWWhG7gOnoM3jFMtuyIQTQDQ/pfkWCR3zzZY2OtpDyBj4OiqfzkWKfAhM9mDxLnuuW 7+scIPSMynvCkuoxY+kJanxfRsPo9+G/GZS77NWfyHbVCdO/7iJqH5levKjIBeNxCvXt e+p8yqvyz0CCfYRGZb9R/KTrJNL9R/4ER3cO3FdLkE6wiChqQQerMsiT/ZMhxgIKW72V W0h0d8x5uQjD2RFyWkxUsOGWpzznW8Npv3++wW+Vj4LIPgp9PzPocJiggMJJpaSiV2lY qiRwKOK1YpphE1uXFzg+KL33IZ4ScVHcKW07PdonCXsf1RKJuzYAKEknCnUenmDODDaw cGDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25-20020a056402049900b0045903f0af9dsi5080276edv.111.2022.10.04.09.15.53; Tue, 04 Oct 2022 09:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbiJDPUy (ORCPT + 99 others); Tue, 4 Oct 2022 11:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiJDPUv (ORCPT ); Tue, 4 Oct 2022 11:20:51 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34A113F21; Tue, 4 Oct 2022 08:20:48 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 274A918847D5; Tue, 4 Oct 2022 15:20:46 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 1C11425002BC; Tue, 4 Oct 2022 15:20:46 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 1361F9EC000E; Tue, 4 Oct 2022 15:20:46 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 Received: from fujitsu.vestervang (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id 2858B9EC000C; Tue, 4 Oct 2022 15:20:45 +0000 (UTC) From: Hans Schultz To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, Hans Schultz , Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Ido Schimmel , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 iproute2-next 1/4] include: uapi: MacAuth and Blackhole feature header changes Date: Tue, 4 Oct 2022 17:20:33 +0200 Message-Id: <20221004152036.7848-1-netdev@kapio-technology.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Westermo Network Technologies AB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Signed-off-by: Hans Schultz --- include/uapi/linux/if_link.h | 1 + include/uapi/linux/neighbour.h | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index 7494cffb..58a002de 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h @@ -559,6 +559,7 @@ enum { IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT, IFLA_BRPORT_MCAST_EHT_HOSTS_CNT, IFLA_BRPORT_LOCKED, + IFLA_BRPORT_MAB, __IFLA_BRPORT_MAX }; #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1) diff --git a/include/uapi/linux/neighbour.h b/include/uapi/linux/neighbour.h index a998bf76..cc7d540e 100644 --- a/include/uapi/linux/neighbour.h +++ b/include/uapi/linux/neighbour.h @@ -52,7 +52,9 @@ enum { #define NTF_STICKY (1 << 6) #define NTF_ROUTER (1 << 7) /* Extended flags under NDA_FLAGS_EXT: */ -#define NTF_EXT_MANAGED (1 << 0) +#define NTF_EXT_MANAGED (1 << 0) +#define NTF_EXT_LOCKED (1 << 1) +#define NTF_EXT_BLACKHOLE (1 << 2) /* * Neighbor Cache Entry States. @@ -86,6 +88,13 @@ enum { * NTF_EXT_MANAGED flagged neigbor entries are managed by the kernel on behalf * of a user space control plane, and automatically refreshed so that (if * possible) they remain in NUD_REACHABLE state. + * + * NTF_EXT_LOCKED flagged FDB entries are placeholder entries used with the + * locked port feature, that ensures that an entry exists while at the same + * time dropping packets on ingress with src MAC and VID matching the entry. + * + * NTF_EXT_BLACKHOLE flagged FDB entries ensure that no forwarding is allowed + * from any port to the destination MAC, VID pair associated with it. */ struct nda_cacheinfo { -- 2.34.1