From patchwork Sat Nov 21 11:57:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 11923345 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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 E0B6CC388F9 for ; Sat, 21 Nov 2020 11:57:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C97422226 for ; Sat, 21 Nov 2020 11:57:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="27aXkP5i"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OuVLK0Hm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbgKUL5P (ORCPT ); Sat, 21 Nov 2020 06:57:15 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:45938 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbgKUL5P (ORCPT ); Sat, 21 Nov 2020 06:57:15 -0500 From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605959833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=866fJcX+86sAiYltFe9jnsRUbIt0jIPCKbl1c3NfZHQ=; b=27aXkP5iDC1dtXeIjBQBRslelajeYtiYvVNj6o+KGwA1SWMs3R3aMTDQDx0QfmKk+3i3MQ wrJiurD5shXDYOzY4eUANlHnnuYMhNHAEP2pc1PCPUH/hdrWLbaUdYGl3FRuiL4dohq0Bs FJ2S0UzfQsj5rLXBZJnxc1wq3IqU4NCcf8RIqXyhsnSIMjpaL4p+vU8jCYvsq8yeME9Jo/ lkev9cSCrmdiRGHZ/fuaau3vkTm+GTEwHClWIDoXq2D8j5NUJNuYlIVUZYpC6gHf+C1QPw nRozGl2YZ67j24sliZBxyGJm2T2TYemv4RbzsBrG7pnfcxhDvh9psmt5zrUyog== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605959833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=866fJcX+86sAiYltFe9jnsRUbIt0jIPCKbl1c3NfZHQ=; b=OuVLK0HmQtGSDFo6X5zNWCho1nfSsWrGkgpZE2I45JfbWXUdw+axBRQeJRJTBIX0vCXlqz F9kMLYLbS0yYEaCw== To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean Cc: "David S. Miller" , Jakub Kicinski , Vinicius Costa Gomes , netdev@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH net-next 0/1] net: dsa: hellcreek: Add TAPRIO offloading Date: Sat, 21 Nov 2020 12:57:02 +0100 Message-Id: <20201121115703.23221-1-kurt@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi, The switch has support for the 802.1Qbv Time Aware Shaper (TAS). Traffic schedules may be configured individually on each front port. Each port has eight egress queues. The traffic is mapped to a traffic class respectively via the PCP field of a VLAN tagged frame. This is a respin of the original patch with the discovered issues fixed: * Drop TC <-> PCP mapping => This is handled in the TAPRIO core now. * Don't depend on the system's time synchronized to the PTP clock => Drop hrtimers and use periodic delayed work instead. Also drop the spinlocks as delayed work is executed in user context and mutexes can be used which makes everything much simpler. Thanks, Kurt Kurt Kanzenbach (1): net: dsa: hellcreek: Add TAPRIO offloading support drivers/net/dsa/hirschmann/hellcreek.c | 314 +++++++++++++++++++++++++ drivers/net/dsa/hirschmann/hellcreek.h | 22 ++ 2 files changed, 336 insertions(+)