Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp838444ybx; Tue, 5 Nov 2019 06:23:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxVb/KP0u+Vuatf/QpL/MaTu7z4jQk41fD8iWtxXZR2cO89JS/J1Qs/f5qMhcp1M2h5hrNI X-Received: by 2002:a05:6402:1156:: with SMTP id g22mr36496173edw.233.1572963813076; Tue, 05 Nov 2019 06:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572963813; cv=none; d=google.com; s=arc-20160816; b=Ss5Y9Y6M7KaGqX+wS6bsLdYEKqy6+vhQuNsBXIcD5fv0jJZvesKWRmeb2POfy+Cm89 ID87m0Xo/oO1qfNI8BwSgs3zk/a8vAYZz5K8+zH9cLbGE9VQCsEgNC8kRcXLHlq1bkn2 6neBQbwGjkSBZbsOwC0IO3N7PObh8Ann9VoiUWH90VfPaq3+rRlmRybK2Zzr+b8rY/WF kfxnSz1nfPMGnK9XSgRn6xbCA0o5tKS+ef3QZZDgePDuyQR6F5lmGYQu29S1srN36cXy HUwnGF9D6/KocYKTWEWMvmvkoUhx4nDfOT+xJnlx9Vq88R2tsSX+QTJeVxzi+kSHAuey voUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u/OP1j0INm7LEy3jDv8RE1WCfpiFT+lOlsq0q7UGwzo=; b=wBmn6CJR43gnRGqh+QN6vwtVluIt1wRsRevygsxQdsPBsWB2W0ZPGItHyz7YOGj+kH vUaLz5YGDZTBn41wva1hC4I/HDrTz97g00xvmC7cQJWdU/woH6pKhTSXTKRSyB7CEbaR iHi0Fy6BhQBxCY/kumd5m2o8w11izcw1tyW94bKpjzVMzFx1msrc4UXiNQ9B5HK/nDhx 9ZGwO2fa3V9hvSCHIbKsJr7519ShHvvVsUURRzZFs33hWlCJE0t94lL8EFdEMtu3G21O CqSRxBj6/x7RGcVw9eHfBUgKw5AyRHjwPy5Mdo68NdCkyNPsbjvMo+SM9Y+MGigRWQfj dqqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=vPGp4hZC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si14481956ejd.180.2019.11.05.06.23.08; Tue, 05 Nov 2019 06:23:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=vPGp4hZC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730903AbfKEOWE (ORCPT + 99 others); Tue, 5 Nov 2019 09:22:04 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:49834 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730816AbfKEOWE (ORCPT ); Tue, 5 Nov 2019 09:22:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=u/OP1j0INm7LEy3jDv8RE1WCfpiFT+lOlsq0q7UGwzo=; b=vPGp4hZClfP9BA3FrlRgaRP9tb ERKP7QiG+1uWMk0pwbkXjhAfaMt8za5rGXilbwhN54GL9SPYfox6QvcvFghT+pPQlYewGitfSFwoK Z1XpZgiEtY345/du/qnyRqcIinHtF6vKENtwVBDUe9OO4OBPkFcM3msf6Qn/UGN7IdXk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iRzic-0002Gz-38; Tue, 05 Nov 2019 15:22:02 +0100 Date: Tue, 5 Nov 2019 15:22:02 +0100 From: Andrew Lunn To: Ioana Ciornei Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, f.fainelli@gmail.com Subject: Re: [PATCH 06/12] staging: dpaa2-ethsw: add ACL entry to redirect STP to CPU Message-ID: <20191105142202.GC7189@lunn.ch> References: <1572957275-23383-1-git-send-email-ioana.ciornei@nxp.com> <1572957275-23383-7-git-send-email-ioana.ciornei@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572957275-23383-7-git-send-email-ioana.ciornei@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static int ethsw_port_set_ctrl_if_acl(struct ethsw_port_priv *port_priv) > +{ > + const char stp_mac[ETH_ALEN] = {0x01, 0x80, 0xC2, 0x00, 0x00, 0x00}; I think there is a standard define for that somewhere in include/linux or maybe include/net. But thinking about the big picture, i wonder why this is needed, at least in a minimal implementation. Bit 0 is set in this MAC address, so it is a L2 multicast frame. By default, all L2 multicast frames should be delivered to the CPU. So it should work without this. Andrew