From patchwork Mon Jan 18 16:17:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12027631 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D833EC433DB for ; Mon, 18 Jan 2021 16:21:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD8FF2225E for ; Mon, 18 Jan 2021 16:21:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406570AbhARQUd (ORCPT ); Mon, 18 Jan 2021 11:20:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406521AbhARQTT (ORCPT ); Mon, 18 Jan 2021 11:19:19 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43200C061798 for ; Mon, 18 Jan 2021 08:18:03 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id rv9so5671229ejb.13 for ; Mon, 18 Jan 2021 08:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kDpvf2c68+1om/LVZmx9+7tfLn6lFzPq7jdW8tubCTw=; b=UhL4YrIeCPTVZkqN8axqKC2VvB//xcO5yryn5PKkQrK+f3hhYcqxeIXa6ESi4VbCHO GlWCvLVqwyFzcEyHkpFqsUI9YtcWvPeG7xef2D6TRoZ1v4e1dTh4S3YXHeJ4k/25osrn Fz7BpCvAsSEhcTLEz5IApRu0Do4gj+eZZptWObun967VYXeMf4REYR+I3bPnkb2p5W2h y7MOUpnkPkCwkfa/VAusy4zLJWMN5oNXnDFavyNSprLvqgNjiD+cpDp5Xoe1tAgajdSi maRxgXUX5uUIPGCw2QN+h647gqcsPoI6ZaxQoY5S/C0LhfrPNJqHiLHbuUaVkbcTh2yt HY8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kDpvf2c68+1om/LVZmx9+7tfLn6lFzPq7jdW8tubCTw=; b=RA1gelxnYEo7kX7Q4ClFeW54VprD/gZhdB6zaPrf9V/fm9rqMYNfL+Bs8gz+vhfGQ6 T4GDRP4HU2fkNWEWQ+R7RneSzTnohXbsxu+SUEQjMC9J33NGY8QZSn6y4fzZDd9uo57N JU++EUijx4MQJUsb873bvu2y49g0aDwwaeQ2A7F0NNpWUHkeVCB5N/O9pchJsN6VmpHT ZNzje88Wi0zSu5SGCyseX6ItoZqh65CthgUhv0oQPziM2/OMFyPLADiwjFxSC6k3y27m 0vaNW/yRp3qhQI1/e4nwXpwlFODfFDoy8NDQbK+SBDqil687GWRRaJbUl9I67d5tWZ+n 6CaQ== X-Gm-Message-State: AOAM531K/Gi80o5L3wYd/M2dGlK4jmgvcK6kjdOupn3dOGi6iHqV+zn7 7mhjy8dQzz2hRAptBMbUgl4= X-Google-Smtp-Source: ABdhPJy4UHwFYBgoMgAII0DUJSSpW6EY7LIXmHpErZORp1uBjGdGvM78NPedRDURnlBVFZn2D7mQYw== X-Received: by 2002:a17:906:3a0d:: with SMTP id z13mr313596eje.2.1610986681971; Mon, 18 Jan 2021 08:18:01 -0800 (PST) Received: from localhost.localdomain (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id u23sm6093781edt.78.2021.01.18.08.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 08:18:01 -0800 (PST) From: Vladimir Oltean To: "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: Andrew Lunn , Florian Fainelli , Vivien Didelot , Richard Cochran , Claudiu Manoil , Alexandru Marginean , Alexandre Belloni , Xiaoliang Yang , Hongbo Wang , Po Liu , Yangbo Lu , Maxim Kochetkov , Eldar Gasanov , Andrey L , UNGLinuxDriver@microchip.com Subject: [PATCH v3 net-next 14/15] net: dsa: felix: use promisc on master for PTP with tag_8021q Date: Mon, 18 Jan 2021 18:17:30 +0200 Message-Id: <20210118161731.2837700-15-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118161731.2837700-1-olteanv@gmail.com> References: <20210118161731.2837700-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vladimir Oltean This is for the "no extraction IRQ" workaround, where the DSA master on LS1028A (enetc) serves as a de-facto irqchip. It needs to be promiscuous so that it will never drop a PTP frame (sent to the 01-80-c2-00-00-0e multicast MAC address), otherwise the tagger will get confused about which Ethernet PTP frame corresponds to which PTP frame over the MMIO registers. Signed-off-by: Vladimir Oltean --- Changes in v3: None. Changes in v2: Patch is new. net/dsa/tag_ocelot_8021q.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/dsa/tag_ocelot_8021q.c b/net/dsa/tag_ocelot_8021q.c index 290880b94bb3..430d77d0b8eb 100644 --- a/net/dsa/tag_ocelot_8021q.c +++ b/net/dsa/tag_ocelot_8021q.c @@ -53,6 +53,7 @@ static struct dsa_device_ops ocelot_netdev_ops = { .xmit = ocelot_xmit, .rcv = ocelot_rcv, .overhead = VLAN_HLEN, + .promisc_on_master = true, }; MODULE_LICENSE("GPL v2");