Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp894491pxp; Wed, 16 Mar 2022 20:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvolsKeqfDvG3cIHhLvahUoHzlgXNx7wz7vwBS8zO/BcAV5pLNwrID1WRLTIXZlj7lnJwi X-Received: by 2002:a17:90b:4f8e:b0:1bf:8b95:da05 with SMTP id qe14-20020a17090b4f8e00b001bf8b95da05mr13510230pjb.216.1647487674091; Wed, 16 Mar 2022 20:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487674; cv=none; d=google.com; s=arc-20160816; b=0s+BDwCUwM7itXnzQf3HiNCfV4qJloDAU967jC/smdZX58vlLB0rXo3NJ2DHA/c7yV fFYHapqKZ705l/RTQYQczchvQhWTZu+2unlKYUJHI72ZgVr0THgW6MjWmycfVv36FkBV aDe8oSa/TB4xrldrMiGY8OJx2JGrOuR88blcNlz+8v2baxe6XWk6oj26xdI2RP0B7raB r8GUIJurKQqBoE/AHvpNGe/aWu2tTfkHm55ZvWrS3ejIA8k6hkRiprJbg9x9NLbagnl/ quYKC/1EERboOIgdBDMjM389e7ptaFQFB9A/5fmE0dcVRKXm+QEXEbrzBfK99otij2wM fLnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JlSDTrMLCmc5n2ZJdwjUCSRTD54RzeM/4/q2sdv25jo=; b=CXVkD9Qqo6hZpFF2Nqs7Qt09g6Szr/ovAsQBq2geHPoRgpROF5f520490IvT6DQRvs oJDWApi+wJXwnBGre0/cHGqAhC1mEWk/LevojNB1OLZDDRHEYmNhG40vADKhh+pawLGl +NKynYAc5EEQPEbywklaj4X6YQi5cfwRLcRXJP/sfUB3aKFTOZb8iZz1LhEvGI307SvJ 9wFcFm1/eEhAPfiTZ723V70v9tyQqu5M5hhGJHqrP9sSQuCk9UFRQYdUhgLAgWCV3sK4 yGaRjt08+6kkdxmD9iJrDiKtVCbivpuH6HUVT55hTVStzodgItK5ASR6vv4O8YdwdLos N3PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c6sWo3xX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u6-20020a170903124600b0014fcd144fddsi3858957plh.212.2022.03.16.20.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:27:54 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=c6sWo3xX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BBB736307; Wed, 16 Mar 2022 20:26:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346947AbiCQATu (ORCPT + 99 others); Wed, 16 Mar 2022 20:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiCQATs (ORCPT ); Wed, 16 Mar 2022 20:19:48 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D105C1C926; Wed, 16 Mar 2022 17:18:33 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id o13so1384404pgc.12; Wed, 16 Mar 2022 17:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=JlSDTrMLCmc5n2ZJdwjUCSRTD54RzeM/4/q2sdv25jo=; b=c6sWo3xXkqmXwk4zqCMnEhspLRrdVlstTAEwqW5ADtJsxzmXRVvGDhHJwNbvm3L1GE cBePNIqauQpE2mLrOvmuh2DzSlaizlX28lqEJOuJnCB3essSkUsssjlTc5I9j+YdI+ML ah9cynpMusdLJTPHlaTrCjPCYdY4CKrxFigK4vTd4zcrcugtT/SqBM34cceNXtEn3Cmh n2qX3+Ebtdw7/Fl64N/gScs0ozHSk6Lrnvpjna19n/oGwvzO8M7wFa8UOop1wQBkqki2 qujVIXmhyeVE09+4HeePt8Jvw2HQPA7w1UJ5QKLijFRNTqrPN3KOcFQqDIlsIa5f10Kc oC7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JlSDTrMLCmc5n2ZJdwjUCSRTD54RzeM/4/q2sdv25jo=; b=yKb8uJV44bWg6zGppAyBlRKrokX9GnUl9kYjqyIW+xdMWS8NaoBC/ETsYlnblCj8mD hSgFlPSuQAM2GumcZzxhdLYd0xQWRgrYuoWBxorx/V9Vuo7/h1a6QcrA1ISq8jgGvJ2u igYEio1j+c5/ISLjOE+2YKCi4HvkTmANu1UnMeCvBefPVoo0VOW8ZHJvBYUYe/t5SuCG MoN3fgW8qXU5c2a+8Gr2ZZnH+cp/J368/tzDkzj7FqgFKJXhV/usLXNx8Fg3kkAEBVyx fpR/REyCl+ZM7Dy4jqLw/vmq0E0JyHxyNshbOZ1kJAr9qPZjXQO0k/3WicgNIo6rI+N3 p9lQ== X-Gm-Message-State: AOAM531E/99xtmZ63L83MLjYdbPttvpVTv0lERcCC+1aYyjwjORaGe9V QUfQGIGOyhML40CjbCfIvEg= X-Received: by 2002:a63:f0d:0:b0:381:ee45:f557 with SMTP id e13-20020a630f0d000000b00381ee45f557mr1622135pgl.436.1647476313279; Wed, 16 Mar 2022 17:18:33 -0700 (PDT) Received: from [192.168.1.3] (ip72-194-116-95.oc.oc.cox.net. [72.194.116.95]) by smtp.gmail.com with ESMTPSA id w21-20020a634755000000b00368f3ba336dsm3585121pgk.88.2022.03.16.17.18.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Mar 2022 17:18:32 -0700 (PDT) Message-ID: Date: Wed, 16 Mar 2022 17:18:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH net-next 0/3] Extend locked port feature with FDB locked flag (MAC-Auth/MAB) Content-Language: en-US To: Hans Schultz , davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, Hans Schultz , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Daniel Borkmann , Ido Schimmel , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org References: <20220310142320.611738-1-schultz.hans+netdev@gmail.com> From: Florian Fainelli In-Reply-To: <20220310142320.611738-1-schultz.hans+netdev@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 3/10/2022 6:23 AM, Hans Schultz wrote: > This patch set extends the locked port feature for devices > that are behind a locked port, but do not have the ability to > authorize themselves as a supplicant using IEEE 802.1X. > Such devices can be printers, meters or anything related to > fixed installations. Instead of 802.1X authorization, devices > can get access based on their MAC addresses being whitelisted. > > For an authorization daemon to detect that a device is trying > to get access through a locked port, the bridge will add the > MAC address of the device to the FDB with a locked flag to it. > Thus the authorization daemon can catch the FDB add event and > check if the MAC address is in the whitelist and if so replace > the FDB entry without the locked flag enabled, and thus open > the port for the device. > > This feature is known as MAC-Auth or MAC Authentication Bypass > (MAB) in Cisco terminology, where the full MAB concept involves > additional Cisco infrastructure for authorization. There is no > real authentication process, as the MAC address of the device > is the only input the authorization daemon, in the general > case, has to base the decision if to unlock the port or not. > > With this patch set, an implementation of the offloaded case is > supplied for the mv88e6xxx driver. When a packet ingresses on > a locked port, an ATU miss violation event will occur. When > handling such ATU miss violation interrupts, the MAC address of > the device is added to the FDB with a zero destination port > vector (DPV) and the MAC address is communicated through the > switchdev layer to the bridge, so that a FDB entry with the > locked flag enabled can be added. FWIW, we may have about a 30% - 70% split between switches that will signal ATU violations over a side band interrupt, like mv88e6xxx will, and the rest will likely signal such events via the proprietary tag format. -- Florian